Skip to content

Commit

Permalink
simplify with gh command line; thanks @ryepup!
Browse files Browse the repository at this point in the history
  • Loading branch information
zsteinkamp committed Mar 28, 2024
1 parent 748a490 commit a0a6ccb
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Get release
id: get_release
uses: bruceadams/get-release@v1.3.2
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Build dist/acme.js
run: make build

- name: Upload acme.js to release
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./dist/acme.js
asset_name: acme.js
asset_content_type: text/javascript
GH_TOKEN: ${{ github.token }}
run: gh release upload "${{ github.event.release.tag_name }}" ./dist/acme.js

0 comments on commit a0a6ccb

Please sign in to comment.