Skip to content

Commit

Permalink
Testing release
Browse files Browse the repository at this point in the history
  • Loading branch information
mbwilding committed Dec 21, 2023
1 parent 9e16d56 commit b99d4eb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/Release-Windows.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Windows

on:
release:
types: [created]
workflow_dispatch:

jobs:
build:
Expand All @@ -14,27 +13,40 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@master
uses: actions/checkout@v2

- name: "Rust"
- name: "Set up Rust"
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ matrix.target }}

- name: "Dependencies"
- name: "Install Dependencies"
run: sudo apt-get install -y mingw-w64 libudev-dev zip wine64

- name: "Build"
run: cargo build --release --target ${{ matrix.target }}

- name: "Extract Cargo Package Version"
id: cargo-version
run: echo "CARGO_VERSION=$(grep '^version' Cargo.toml | head -1 | cut -d '\"' -f 2)" >> $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 }}
- name: "Zip"
run: |
cp target/${{ matrix.target }}/release/dygma-layer-switcher.exe .
zip dls-${{ github.ref_name }}-${{ matrix.target }}.zip dygma-layer-switcher.exe
zip dls-v${{ env.CARGO_VERSION }}-${{ matrix.target }}.zip dygma-layer-switcher.exe
- name: "Release"
- name: "Create GitHub Release"
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ env.CARGO_VERSION }}
release_name: v${{ env.CARGO_VERSION }}
files: |
dls-${{ github.ref_name }}-${{ matrix.target }}.zip
dls-v${{ env.CARGO_VERSION }}-${{ matrix.target }}.zip
2 changes: 1 addition & 1 deletion dygma-layer-switcher/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dygma-layer-switcher"
version = "0.1.0"
version = "0.3.4"
edition = "2021"
authors = ["Matthew Wilding <[email protected]>"]

Expand Down

0 comments on commit b99d4eb

Please sign in to comment.