Skip to content

Commit

Permalink
fix bug: share files in different jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
zfb132 committed May 3, 2022
1 parent b9f507c commit 7679d39
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/publish-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ jobs:
chmod +x publish.sh
./publish.sh
- name: Upload release file
if: contains(github.ref, 'tags/')
uses: actions/upload-artifact@v3
with:
name: release
path: QrScan.zip


upload:
name: Upload Ubuntu Release
Expand All @@ -45,6 +52,10 @@ jobs:
# git push origin --tags
if: contains(github.ref, 'tags/')
steps:
- name: Download release file
uses: actions/download-artifact@v3
with:
name: release
- name: Prepare Release
id: prepare_release
run: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/publish-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
run: |
./publish.bat
- name: Upload release file
if: contains(github.ref, 'tags/')
uses: actions/upload-artifact@v3
with:
name: release
path: QrScan.zip

upload:
name: Upload Windows Release
Expand All @@ -42,6 +48,10 @@ jobs:
# git push origin --tags
if: contains(github.ref, 'tags/')
steps:
- name: Download release file
uses: actions/download-artifact@v3
with:
name: release
- name: Prepare Release
id: prepare_release
run: |
Expand Down

0 comments on commit 7679d39

Please sign in to comment.