Skip to content

Commit fdedfd5

Browse files
committed
fix tarball upload step
1 parent b8da896 commit fdedfd5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,17 @@ jobs:
2424
git archive --format=tar.gz -o $TARGET $TAG_NAME
2525
env:
2626
TAG_NAME: ${{ github.event.release.tag_name }}
27-
TARGET: ${{ runner.temp }}/Sources.tar.gz
27+
TARGET: ${{ runner.temp }}/release.tar.gz
28+
- name: Upload sources tarball
29+
uses: actions/upload-release-asset@v1
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
upload_url: ${{ github.event.release.upload_url }}
34+
asset_path: ${{ runner.temp }}/release.tar.gz
35+
asset_name: release.tar.gz
36+
asset_content_type: application/tar+gzip
37+
2838
- name: Build
2939
run: swift build -v -c release
3040
- name: Import Application Siging
@@ -83,16 +93,6 @@ jobs:
8393
asset_name: rswift-${{ github.event.release.tag_name }}.pkg
8494
asset_content_type: application/pkg
8595

86-
- name: Upload sources tarball
87-
uses: actions/upload-release-asset@v1
88-
env:
89-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90-
with:
91-
upload_url: ${{ github.event.release.upload_url }}
92-
asset_path: ${{ runner.temp }}/rswift-${{ github.event.release.tag_name }}.pkg
93-
asset_name: rswift-${{ github.event.release.tag_name }}.pkg
94-
asset_content_type: application/pkg
95-
9696
- name: Store artifact binary
9797
uses: actions/upload-artifact@v1
9898
with:

0 commit comments

Comments
 (0)