Skip to content

Commit 9074fc6

Browse files
authored
Use gh for release artifacts (purescript#4493)
1 parent 6431cd3 commit 9074fc6

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,11 @@ jobs:
180180
181181
- name: "(Release only) Publish bundle"
182182
if: "${{ env.CI_RELEASE == 'true' }}"
183-
# Astonishingly, GitHub doesn't currently maintain a first-party action
184-
# for uploading assets to GitHub releases! This is the best third-party
185-
# one I could find, but as this step handles a token, it seems
186-
# particularly important that we lock it down to a specific audited
187-
# version, instead of a tag like the other steps.
188-
uses: "AButler/upload-release-assets@ec6d3263266dc57eb6645b5f75e827987f7c217d"
189-
with:
190-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
191-
files: "sdist-test/bundle/*.{tar.gz,sha}"
183+
# This requires the gh command line tool to be installed on our
184+
# self-hosted runners
185+
env:
186+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
187+
run: "gh release upload --clobber ${{ github.ref_name }} sdist-test/bundle/*.{tar.gz,sha}"
192188

193189
lint:
194190
runs-on: "ubuntu-latest"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Use `gh` for release artifacts

0 commit comments

Comments
 (0)