Fix getting tag name on Windows deploy
This commit is contained in:
parent
820667c608
commit
50d5ec48cf
1 changed files with 5 additions and 5 deletions
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
|
|
@ -10,6 +10,8 @@ jobs:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: olegtarasov/get-tag@v2
|
||||||
|
id: tagName
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -22,15 +24,13 @@ jobs:
|
||||||
strip target/release/oxipng.exe
|
strip target/release/oxipng.exe
|
||||||
- name: Create zip
|
- name: Create zip
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2)
|
|
||||||
echo "::set-output name=version::$VERSION"
|
|
||||||
$OXIPNG_PATH="$Env:GITHUB_WORKSPACE\target\release"
|
$OXIPNG_PATH="$Env:GITHUB_WORKSPACE\target\release"
|
||||||
7z a oxipng-v${{ steps.data.outputs.version }}-x86_64-pc-windows-msvc.zip "$OXIPNG_PATH\oxipng.exe"
|
7z a oxipng-${{ steps.tagName.outputs.tag }}-x86_64-pc-windows-msvc.zip "$OXIPNG_PATH\oxipng.exe"
|
||||||
- name: Create a release
|
- name: Create a release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: v${{ steps.data.outputs.version }}
|
name: ${{ steps.tagName.outputs.tag }}
|
||||||
files: |
|
files: |
|
||||||
oxipng-v${{ steps.data.outputs.version }}-x86_64-pc-windows-msvc.zip
|
oxipng-${{ steps.tagName.outputs.tag }}-x86_64-pc-windows-msvc.zip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue