Skip to content

Commit

Permalink
Update zip-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
olvidalo authored Apr 28, 2022
1 parent e79a309 commit e29a371
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/zip-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: echo ${{ github.sha }} > Release.txt
- name: Test
run: cat Release.txt
- name: Get the file name
id: get_filename
run: echo ::set-output name=filename::${GITHUB_REF#refs/tags/}.zip
- name: Archive Release
uses: thedoctor0/zip-release@master
id: create_zip
with:
type: 'zip'
filename: ${{steps.get_filename.outputs.filename}}
exclusions: '*.git*'
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: Release.txt
files: ${{steps.get_filename.outputs.filename}}

0 comments on commit e29a371

Please sign in to comment.