-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The old actions I was using are apparently archived because they make use of deprecated features (like `set-output`). Sigh. Closes #2360
- Loading branch information
1 parent
f34fd5c
commit c9584b0
Showing
1 changed file
with
5 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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 }} |