Skip to content

Commit ef28f4f

Browse files
committed
test github actions
1 parent 8f4b698 commit ef28f4f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,21 @@ jobs:
8282
env:
8383
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8484
UPLOADTOOL_ISPRERELEASE: true
85+
VERSION: ${GITHUB_REF#refs/tags/}
8586
run: |
87+
echo ${VERSION}
8688
curl -L https://github.com/probonopd/uploadtool/raw/master/upload.sh --output upload.sh
8789
mv target/${{ matrix.target }}/release/et et
88-
tar -cavf et-${{ steps.version.outputs.VERSION }}-${{ matrix.target }}.tar.gz et CHANGELOG.md README.md LICENSE
89-
bash upload.sh et-${{ steps.version.outputs.VERSION }}-${{ matrix.target }}.tar.gz
90+
tar -cavf et-${VERSION}-${{ matrix.target }}.tar.gz et CHANGELOG.md README.md LICENSE
91+
bash upload.sh et-${VERSION}-${{ matrix.target }}.tar.gz
9092
9193
- name: Upload files (only for Windows)
9294
if: matrix.target == 'x86_64-pc-windows-msvc'
9395
env:
9496
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9597
UPLOADTOOL_ISPRERELEASE: true
98+
VERSION: ${GITHUB_REF#refs/tags/}
9699
run: |
97100
curl -L https://github.com/probonopd/uploadtool/raw/master/upload.sh --output upload.sh
98-
mv target/${{ matrix.target }}/release/et.exe et-${{ steps.version.outputs.VERSION }}-${{ matrix.target }}.exe
99-
bash upload.sh et-${{ steps.version.outputs.VERSION }}-${{ matrix.target }}.exe
101+
mv target/${{ matrix.target }}/release/et.exe et-${VERSION}-${{ matrix.target }}.exe
102+
bash upload.sh et-${VERSION}-${{ matrix.target }}.exe

0 commit comments

Comments
 (0)