Skip to content

Commit

Permalink
ci: Add artifact upload to release
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
  • Loading branch information
patrickelectric committed Mar 12, 2023
1 parent fd809a7 commit 50e4dd8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -97,3 +97,23 @@ jobs:
with:
name: qhot-${{ runner.os }}
path: ${{ matrix.DEPLOY_PATH }}

- name: Upload continuous to release
uses: svenstaro/upload-release-action@v2
if: ${{ github.event_name != 'pull_request' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.DEPLOY_PATH }}
tag: continuous
overwrite: true
prerelease: true

- name: Upload release
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.DEPLOY_PATH }}
tag: ${{ github.ref }}
overwrite: true
prerelease: true

0 comments on commit 50e4dd8

Please sign in to comment.