Skip to content

Commit

Permalink
Release fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mbwilding committed Dec 21, 2023
1 parent 3bfd90a commit a3af223
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 26 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/Release-Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@ jobs:

- name: "Extract Cargo Package Version"
id: cargo-version
run: echo "CARGO_VERSION=$(grep '^version' dygma-layer-switcher/Cargo.toml | head -1 | cut -d '\"' -f 2)" >> $GITHUB_ENV
run: echo "CARGO_VERSION=v$(grep -oP 'version\s*=\s*"\K[0-9]+\.[0-9]+\.[0-9]+' dygma-layer-switcher/Cargo.toml | head -n 1" >> $GITHUB_ENV

- name: "Create Git Tag"
run: |
git config --local user.name "GitHub Action"
git config --local user.email "[email protected]"
git tag -a v${{ env.CARGO_VERSION }} -m "Release v${{ env.CARGO_VERSION }}"
git push origin v${{ env.CARGO_VERSION }}
git tag -a ${{ env.CARGO_VERSION }} -m "${{ env.CARGO_VERSION }}"
git push origin ${{ env.CARGO_VERSION }}
- name: "Zip"
run: |
cp target/${{ matrix.target }}/release/dygma-layer-switcher.exe .
zip dls-v${{ env.CARGO_VERSION }}-${{ matrix.target }}.zip dygma-layer-switcher.exe
zip dls-${{ env.CARGO_VERSION }}-${{ matrix.target }}.zip dygma-layer-switcher.exe
- name: "Create GitHub Release"
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ env.CARGO_VERSION }}
release_name: v${{ env.CARGO_VERSION }}
tag_name: ${{ env.CARGO_VERSION }}
release_name: ${{ env.CARGO_VERSION }}
files: |
dls-v${{ env.CARGO_VERSION }}-${{ matrix.target }}.zip
dls-${{ env.CARGO_VERSION }}-${{ matrix.target }}.zip
19 changes: 0 additions & 19 deletions .github/workflows/TestExtract.yml

This file was deleted.

0 comments on commit a3af223

Please sign in to comment.