Skip to content

Commit

Permalink
Merge branch 'ci/setup-releases'
Browse files Browse the repository at this point in the history
  • Loading branch information
3N4N committed May 1, 2023
2 parents a2d9ac0 + 60f4368 commit 4598d8a
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- v[0-9]+.[0-9]+.[0-9]+

jobs:
Ubuntu:
Linux:
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
Expand All @@ -23,6 +23,7 @@ jobs:
with:
name: twitchlink-linux64
path: target/x86_64-unknown-linux-musl/release/twitchlink
retention-days: 1

Windows:
runs-on: windows-2022
Expand All @@ -36,4 +37,23 @@ jobs:
with:
name: twitchlink-win64
path: target/release/twitchlink.exe
retention-days: 1

publish:
needs: [linux, windows]
runs-on: ubuntu-22.04
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
# Must perform checkout first, since it deletes the target directory
# before running, and would therefore delete the downloaded artifacts
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- name: Release on GitHub
run: |
TAG_NAME=${{ github.ref }}
TAG_NAME=${TAG_NAME#refs/tags/}
gh release create $TAG_NAME --target $GITHUB_SHA twitchlink-linux64/* twitchlink-win64/*

0 comments on commit 4598d8a

Please sign in to comment.