summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames McKinney <26463+jpmckinney@users.noreply.github.com>2022-11-25 20:29:37 -0500
committerAndrew Gallant <jamslam@gmail.com>2023-07-08 18:52:42 -0400
commitc9584b035b19244e370a50fd872a3ae2039e2931 (patch)
tree5258086cde858f1b120095362453ba838a77ed60
parentf34fd5c4b68480f5969b94709f54d493e79b3257 (diff)
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
-rw-r--r--.github/workflows/release.yml19
1 files changed, 5 insertions, 14 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 618b47d6..3441972b 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -29,9 +29,9 @@ jobs:
# Set to force version number, e.g., when no tag exists.
# RG_VERSION: TEST-0.0.0
outputs:
- upload_url: ${{ steps.release.outputs.upload_url }}
rg_version: ${{ env.RG_VERSION }}
steps:
+ - uses: actions/checkout@v3
- name: Get the release version from the tag
shell: bash
if: env.RG_VERSION == ''
@@ -42,13 +42,9 @@ jobs:
echo "RG_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "version is: ${{ env.RG_VERSION }}"
- name: Create GitHub release
- id: release
- uses: actions/create-release@v1
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- tag_name: ${{ env.RG_VERSION }}
- release_name: ${{ env.RG_VERSION }}
+ GH_TOKEN: ${{ github.token }}
+ run: gh release create ${{ env.RG_VERSION }}
build-release:
name: build-release
@@ -170,11 +166,6 @@ jobs:
fi
- name: Upload release archive
- uses: actions/upload-release-asset@v1.0.2
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- upload_url: ${{ needs.create-release.outputs.upload_url }}
- asset_path: ${{ env.ASSET }}
- asset_name: ${{ env.ASSET }}
- asset_content_type: application/octet-stream
+ GH_TOKEN: ${{ github.token }}
+ run: gh release upload ${{ needs.create-release.outputs.rg_version }} ${{ env.ASSET }}