mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-05-17 10:30:35 +00:00
Simplify windows release job
This commit is contained in:
committed by
Cal Stephens
parent
08c51ce965
commit
ffd1920886
@@ -92,14 +92,9 @@ jobs:
|
||||
pattern: SwiftFormat.*.msi
|
||||
- name: Display structure of downloaded files
|
||||
run: ls -R downloaded-artifacts
|
||||
- name: Move and rename MSI files to workspace root
|
||||
- name: Move MSI files to workspace root
|
||||
run: |
|
||||
for dir in downloaded-artifacts/SwiftFormat.*.msi; do
|
||||
basename="$(basename "$dir")" # SwiftFormat.amd64.msi
|
||||
arch="${basename#SwiftFormat.}" # amd64.msi
|
||||
arch="${arch%.msi}" # amd64
|
||||
mv "$dir/SwiftFormat.msi" "./SwiftFormat.${arch}.msi"
|
||||
done
|
||||
mv downloaded-artifacts/*/*.msi ./
|
||||
rm -rf downloaded-artifacts
|
||||
- name: Display structure of uploadable files
|
||||
run: ls -R .
|
||||
|
||||
Reference in New Issue
Block a user