Skip to content

Commit

Permalink
Add release step to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkwouter committed Apr 21, 2022
1 parent 27a5258 commit d345869
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,28 @@ jobs:
laserkombat.exe
assets
COPYING
Release:
needs: [Linux, Windows]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
strategy:
matrix:
build: [linux, windows]
steps:
- name: Extract tag name
if: startsWith(github.ref, 'refs/tags/')
id: tag
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/download-artifact@v2
- name: Zip artifacts
run: |
zip -r laserkombat-${{matrix.build}}.zip laserkombat-${{matrix.build}}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: laserkombat-${{matrix.build}}.zip
tag_name: ${{ steps.tag.outputs.VERSION }}
name: Laser Kombat Revised version ${{ steps.tag.outputs.VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d345869

Please sign in to comment.