release: v0.3.1 #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
release: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo build --release | |
- run: mv ./target/release/wifi-qr.exe wifi-qr.exe | |
- name: install NSIS | |
run: | | |
iwr -useb get.scoop.sh -outfile 'install.ps1' | |
.\install.ps1 -RunAsAdmin | |
scoop update | |
scoop bucket add extras | |
scoop install nsis | |
- run: makensis /V4 installer.nsi | |
- run: mv wifi-qr-setup.exe wifi-qr-${{github.ref_name}}-setup.exe | |
- name: release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
wifi-qr.exe | |
wifi-qr-${{github.ref_name}}-setup.exe |