Skip to content

Commit c9584b0

Browse files
jpmckinneyBurntSushi
authored andcommitted
ci/release: use GitHub CLI
The old actions I was using are apparently archived because they make use of deprecated features (like `set-output`). Sigh. Closes #2360
1 parent f34fd5c commit c9584b0

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
# Set to force version number, e.g., when no tag exists.
3030
# RG_VERSION: TEST-0.0.0
3131
outputs:
32-
upload_url: ${{ steps.release.outputs.upload_url }}
3332
rg_version: ${{ env.RG_VERSION }}
3433
steps:
34+
- uses: actions/checkout@v3
3535
- name: Get the release version from the tag
3636
shell: bash
3737
if: env.RG_VERSION == ''
@@ -42,13 +42,9 @@ jobs:
4242
echo "RG_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
4343
echo "version is: ${{ env.RG_VERSION }}"
4444
- name: Create GitHub release
45-
id: release
46-
uses: actions/create-release@v1
4745
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
with:
50-
tag_name: ${{ env.RG_VERSION }}
51-
release_name: ${{ env.RG_VERSION }}
46+
GH_TOKEN: ${{ github.token }}
47+
run: gh release create ${{ env.RG_VERSION }}
5248

5349
build-release:
5450
name: build-release
@@ -170,11 +166,6 @@ jobs:
170166
fi
171167
172168
- name: Upload release archive
173-
uses: actions/[email protected]
174169
env:
175-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
176-
with:
177-
upload_url: ${{ needs.create-release.outputs.upload_url }}
178-
asset_path: ${{ env.ASSET }}
179-
asset_name: ${{ env.ASSET }}
180-
asset_content_type: application/octet-stream
170+
GH_TOKEN: ${{ github.token }}
171+
run: gh release upload ${{ needs.create-release.outputs.rg_version }} ${{ env.ASSET }}

0 commit comments

Comments
 (0)