Skip to content

Commit

Permalink
fix (actions): fixed githubt actions release step
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Lukas committed Mar 21, 2022
1 parent df1b393 commit a8007c3
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,24 @@ jobs:
rm -R snapweb-0.2.0
- name: zip dist
run: zip -r hydraplay-${{ steps.vars.outputs.tag }}.zip . -x "src/ui/*" ".git/*" ".github/*" ".gitignore" "docker-compose.inst-dev.yml" "docker-compose.ui-dev.yml"
- name: Push Build to Releases
uses: ncipollo/release-action@v1
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
artifacts: "hydraplay-${{ steps.vars.outputs.tag }}.zip"
token: ${{ secrets.TOKEN }}
tag_name: ${{ steps.vars.outputs.tag }}
release_name: Release ${{ steps.vars.outputs.tag }}
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: ./hydraplay-${{ steps.vars.outputs.tag }}.zip
asset_name: hydraplay-${{ steps.vars.outputs.tag }}.zip
asset_content_type: application/zip

0 comments on commit a8007c3

Please sign in to comment.