Try to fix versioning

This commit is contained in:
Joel Wachsler 2022-07-10 20:30:33 +00:00
parent e9759dfdd5
commit 0b9c435b76

View File

@ -9,11 +9,13 @@ jobs:
- uses: actions/checkout@v2
- name: Determine version
id: version
run: cat Cargo.toml | grep version | head -1 | sed 's/version = //' | sed 's/"//g'
id: determine-version
run: |
VERSION=$(cat Cargo.toml | grep version | head -1 | sed 's/version = //' | sed 's/"//g')
Write-Output "::set-output name=VERSION::$VERSION"
- uses: Klemensas/action-autotag@stable
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
version: "${{ steps.version.outputs.result }}"
version: "${{ steps.determine-version.outputs.VERSION }}"
tag_prefix: "v"