Skip to content

Commit

Permalink
CI: Refactor the release-baseline-images workflow using gh
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Apr 23, 2024
1 parent 17eace3 commit b68f596
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release-baseline-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'GenericMappingTools/gmt'

permissions:
# To write assets to GitHub release
contents: write

steps:
- name: Checkout
uses: actions/[email protected]
Expand All @@ -39,7 +43,6 @@ jobs:
shasum -a 256 baseline-images.zip
- name: Upload baseline image as a release asset
uses: shogo82148/[email protected]
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: baseline-images.zip
run: gh release upload ${{ github.ref_name }} baseline-images.zip
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit b68f596

Please sign in to comment.