Skip to content

Commit

Permalink
Update ci.yml to Upload to GitHub releases
Browse files Browse the repository at this point in the history
  • Loading branch information
hg8496 authored Sep 27, 2024
1 parent 6a06d59 commit cee86e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,14 @@ jobs:
with:
name: rusty-buddy-${{ matrix.config.target }}
path: target/release/rusty-buddy${{ matrix.config.os == 'windows-latest' && '.exe' || '' }}

- name: Upload artifact to GitHub Release
uses: actions/upload-release-asset@v1
if: github.event_name == 'release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: target/release/rusty-buddy
asset_name: rusty-buddy-${{ matrix.config.target }}
asset_content_type: application/octet-stream

0 comments on commit cee86e6

Please sign in to comment.