Skip to content

Commit

Permalink
ci: refactor release to avoid using deprecated package
Browse files Browse the repository at this point in the history
  • Loading branch information
Addono authored Jun 3, 2023
1 parent 2843f30 commit a7154f5
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release

on:
workflow_dispatch:
push:
# Sequence of patterns matched against refs/tags
tags:
Expand Down Expand Up @@ -47,17 +48,17 @@ jobs:
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Rename release file
run: mv downloader.zip downloader_${{ steps.get_version.outputs.VERSION }}_win.zip
shell: bash

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: downloader.zip
asset_name: downloader_${{ steps.get_version.outputs.VERSION }}_win.zip
asset_content_type: application/zip
generate_release_notes: true
files: downloader_${{ steps.get_version.outputs.VERSION }}_win.zip

release:

Expand Down

0 comments on commit a7154f5

Please sign in to comment.