Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mijorus committed Aug 19, 2024
1 parent fd123b5 commit 8d24c22
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,28 @@ jobs:
- uses: actions/checkout@v3
- name: Run release script
run: ./release.sh
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.releases.upload_url }} # Get upload URL from previous step
upload_url: ${{ github.create_release.outputs.upload_url }} # Get upload URL from previous step
asset_path: ./release.tar.gz
asset_name: release.tar.gz
asset_content_type: application/gzip # Optional: Specify content type
asset_content_type: application/gzip # Optional: Specify content type
- name: Publish release
uses: StuYarrow/publish-release@v1.1.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
id: ${{ steps.create_release.outputs.id }}

0 comments on commit 8d24c22

Please sign in to comment.