File tree Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 3434 uses : actions/upload-artifact@v4
3535 with :
3636 name : tdiscuss-${{ matrix.goos }}-${{ matrix.goarch }}
37- path : bazel-bin/tdiscuss-${{ matrix.goos }}-${{ matrix.goarch }}
37+ path : bazel-bin/tdiscuss-${{ matrix.goos }}-${{ matrix.goarch }}_/tdiscuss-${{ matrix.goos }}-${{ matrix.goarch }}
3838
3939 Release :
4040 needs : Build
@@ -44,15 +44,30 @@ jobs:
4444 contents : write
4545 steps :
4646 - uses : actions/checkout@v4
47+ - name : Set pre-release flag
48+ id : release_type
49+ run : |
50+ if [[ ${{ github.ref }} == *beta* ]]; then
51+ echo "type=pre-release" >> $GITHUB_OUTPUT
52+ else
53+ echo "type=release" >> $GITHUB_OUTPUT
54+ fi
4755 - name : Download artifacts
4856 uses : actions/download-artifact@v4
4957 - name : Create Release
5058 env :
5159 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5260 run : |
53- gh release create ${GITHUB_REF#refs/tags/} \
54- --title "Release ${GITHUB_REF#refs/tags/}" \
55- --generate-notes
61+ if [[ "${{ steps.release_type.outputs.type }}" == "pre-release" ]]; then
62+ gh release create ${GITHUB_REF#refs/tags/} \
63+ --title "Release ${GITHUB_REF#refs/tags/}" \
64+ --prerelease \
65+ --generate-notes
66+ else
67+ gh release create ${GITHUB_REF#refs/tags/} \
68+ --title "Release ${GITHUB_REF#refs/tags/}" \
69+ --generate-notes
70+ fi
5671 - name : Upload Release Assets
5772 env :
5873 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ if [[ $? != 0 ]]; then
66fi
77
88echo " STABLE_GIT_SHA ${git_sha} "
9- echo " STABLE_VERSION v0.0.2-alpha2 "
9+ echo " STABLE_VERSION v0.0.2-beta1 "
You can’t perform that action at this time.
0 commit comments