Skip to content

Commit 11a1bc1

Browse files
authored
CI: Use 'gh release' to upload assets to release (#3187)
1 parent da664bc commit 11a1bc1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/release-baseline-images.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818
if: github.repository == 'GenericMappingTools/pygmt'
1919

20+
permissions:
21+
# To write assets to GitHub release
22+
contents: write
23+
2024
steps:
2125
- name: Checkout
2226
uses: actions/checkout@v4.1.1
@@ -35,7 +39,6 @@ jobs:
3539
shasum -a 256 baseline-images.zip
3640
3741
- name: Upload baseline image as a release asset
38-
uses: shogo82148/actions-upload-release-asset@v1.7.5
39-
with:
40-
upload_url: ${{ github.event.release.upload_url }}
41-
asset_path: baseline-images.zip
42+
run: gh release upload ${{ github.ref_name }} baseline-images.zip
43+
env:
44+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)