Skip to content

Commit 290671d

Browse files
committed
Fix release config
1 parent 292f61a commit 290671d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
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 }}

0 commit comments

Comments
 (0)