Skip to content

Commit 043771b

Browse files
Release with softprops/action-gh-release (#41)
1 parent b9879e8 commit 043771b

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

.github/workflows/pr.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,15 @@ jobs:
5050
ASTGEN_VERSION=$(./astgen-linux --version)
5151
echo "ASTGEN_VERSION=$ASTGEN_VERSION" >> $GITHUB_ENV
5252
echo "astgen version is: $ASTGEN_VERSION"
53-
- name: Upload binaries to pre-release
54-
uses: svenstaro/upload-release-action@v2
53+
- name: Upload binaries to release
54+
uses: softprops/action-gh-release@v1
5555
with:
5656
prerelease: true
57-
overwrite: true
58-
file_glob: true
59-
repo_token: ${{ secrets.GITHUB_TOKEN }}
60-
file: astgen-*
61-
target_commit: ${{ github.head_ref || github.ref_name }}
62-
tag: v${{ env.ASTGEN_VERSION }}-prerelease
57+
target_commitish: ${{ github.head_ref || github.ref_name }}
58+
tag_name: v${{ env.ASTGEN_VERSION }}-prerelease
59+
files: |
60+
astgen-win.exe
61+
astgen-macos
62+
astgen-macos-arm
63+
astgen-linux
64+
astgen-linux-arm

.github/workflows/release.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,13 @@ jobs:
5252
ASTGEN_VERSION=$(./astgen-linux --version)
5353
echo "ASTGEN_VERSION=$ASTGEN_VERSION" >> $GITHUB_ENV
5454
echo "astgen version is: $ASTGEN_VERSION"
55-
- name: Set next release version
56-
uses: anothrNick/[email protected]
57-
env:
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59-
CUSTOM_TAG: v${{ env.ASTGEN_VERSION }}
6055
- name: Upload binaries to release
61-
uses: svenstaro/upload-release-action@v2
56+
uses: softprops/action-gh-release@v1
6257
with:
63-
overwrite: true
64-
file_glob: true
65-
repo_token: ${{ secrets.GITHUB_TOKEN }}
66-
file: astgen-*
67-
tag: v${{ env.ASTGEN_VERSION }}
58+
tag_name: v${{ env.ASTGEN_VERSION }}
59+
files: |
60+
astgen-win.exe
61+
astgen-macos
62+
astgen-macos-arm
63+
astgen-linux
64+
astgen-linux-arm

0 commit comments

Comments
 (0)