Skip to content

Commit

Permalink
Replace deprecated Node12 action
Browse files Browse the repository at this point in the history
actions/upload-release-asset is not maintained anymore and relies on Node12
for which support is dropped.

The action also used the old `set-output` command which is also not
supported anymore.
  • Loading branch information
christiaan committed Sep 6, 2023
1 parent 3704dbb commit 99eea2c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ jobs:
- name: Create build
run: make dist

- uses: actions/upload-release-asset@v1
- name: Upload release asset
if: github.event_name == 'release'
run: gh release upload "$TAG" build/release-tool.phar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/release-tool.phar
asset_name: release-tool.phar
asset_content_type: application/zip
TAG: ${{ github.event.release.tag_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 99eea2c

Please sign in to comment.