Skip to content

Commit

Permalink
github actions: simplified asset upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jornbr committed Oct 6, 2023
1 parent 8b786a2 commit 63eabce
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,9 @@ jobs:
run: |
git-archive-all code.tar.gz
git-archive-all code.zip
- name: Upload tar.gz
uses: actions/upload-release-asset@v1
- name: Upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./code.tar.gz
asset_name: Source code including submodules (tar.gz)
asset_content_type: application/gzip
- name: Upload zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./code.zip
asset_name: Source code including submodules (zip)
asset_content_type: application/zip
run: |
gh release upload ${{ github.ref }} code.tar.gz#"Source code including submodules (tar.gz)"
gh release upload ${{ github.ref }} code.zip#"Source code including submodules (zip)"

0 comments on commit 63eabce

Please sign in to comment.