File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 2323 runs-on : ${{ matrix.runs-on }}
2424
2525 steps :
26+ - name : Set version
27+ shell : bash
28+ run : |
29+ TAG=${{ github.ref_name }}
30+ echo "VERSION=${TAG#v}" >> $GITHUB_ENV
31+
2632 - name : Checkout
2733 uses : actions/checkout@v4
2834
@@ -41,16 +47,16 @@ jobs:
4147 run : dotnet test --no-build --verbosity normal
4248
4349 - name : Publish
44- run : dotnet publish StringSpy.Desktop --no-build --self-contained true --runtime ${{ matrix.rid }} /p:Version=${{github.ref_name#v} }
50+ run : dotnet publish StringSpy.Desktop --no-build --self-contained true --runtime ${{ matrix.rid }} /p:Version=${VERSION }
4551
46- - name : Archive Files
52+ - name : Archive files
4753 shell : bash
4854 run : |
4955 cd StringSpy\bin\Release\net9.0\${{ matrix.rid }}\publish\
50- ${{ archive-cmd }} stringspy-${{github.ref_name#v}} -${{ matrix.rid }}.${{ archive-suffix }} *
56+ ${{ matrix. archive-cmd }} stringspy-${VERSION} -${{ matrix.rid }}.${{ matrix. archive-suffix }} *
5157
5258 - name : Release
5359 uses : softprops/action-gh-release@v2
5460 with :
5561 files : |
56- StringSpy\bin\Release\net9.0\${{ matrix.rid }}\publish\stringspy-${{github.ref_name#v}} -${{ matrix.rid }}.${{ archive-suffix }}
62+ StringSpy\bin\Release\net9.0\${{ matrix.rid }}\publish\stringspy-${VERSION} -${{ matrix.rid }}.${{ matrix. archive-suffix }}
You can’t perform that action at this time.
0 commit comments