Skip to content

Commit 552d86e

Browse files
authored
GHA: upload the swift-format MSI as a standalone artifact (#560)
This temporarily will upload the swift-format MSI as a standalone component as we do not currently repackage the installer.
1 parent 79ba6b4 commit 552d86e

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/swift-toolchain.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,10 +2011,13 @@ jobs:
20112011

20122012
- uses: actions/upload-artifact@v2
20132013
with:
2014-
name: swift-format
2015-
path: |
2016-
${{ github.workspace }}/.build/release/swift-format.exe
2017-
${{ github.workspace }}/artifacts/swift-format.msi
2014+
name: swift-format-msi
2015+
path: ${{ github.workspace }}/artifacts/swift-format.msi
2016+
2017+
- uses: actions/upload-artifact@v2
2018+
with:
2019+
name: swift-format.exe
2020+
path: ${{ github.workspace }}/SourceCache/swift-format/.build/release/swift-format.exe
20182021

20192022
snapshot:
20202023
runs-on: ubuntu-latest
@@ -2048,6 +2051,11 @@ jobs:
20482051
name: installer-amd64
20492052
path: ${{ github.workspace }}/tmp
20502053

2054+
- uses: actions/download-artifact@v3
2055+
with:
2056+
name: swift-format-msi
2057+
path: ${{ github.workspace }}/tmp
2058+
20512059
- name: compute release name
20522060
id: release_name
20532061
run: |
@@ -2070,4 +2078,12 @@ jobs:
20702078
asset_name: installer-amd64.exe
20712079
asset_path: ${{ github.workspace }}/tmp/installer.exe
20722080
upload_url: ${{ steps.create_release.outputs.upload_url }}
2081+
- uses: actions/[email protected]
2082+
env:
2083+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2084+
with:
2085+
asset_content_type: application/octet-stream
2086+
asset_name: swift-format.msi
2087+
asset_path: ${{ github.workspace }}/tmp/swift-format.msi
2088+
upload_url: ${{ steps.create_release.outputs.upload_url }}
20732089

0 commit comments

Comments
 (0)