Skip to content

Commit

Permalink
add deploy assets stage in gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rovel committed Feb 14, 2024
1 parent 00664bb commit c58a728
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,31 @@ jobs:
with:
name: ${{ matrix.target }}
path: target/${{ matrix.target }}/release/
deploy:
name: Deploy to GitHub Releases
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: ${{ matrix.target }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v1.0.0
release_name: Release 1.0.0
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: target/${{ matrix.target }}/release/
asset_name: image-cleaner-${{ matrix.target }}
asset_content_type: application/octet-stream

0 comments on commit c58a728

Please sign in to comment.