Skip to content

✨ feature: classic clap help style #8

✨ feature: classic clap help style

✨ feature: classic clap help style #8

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
tags:
- "*"
jobs:
publish:
name: Windows
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-msvc
- name: Rust cache restore
uses: "Swatinem/rust-cache@v1"
with:
key: cargo-x86_64-pc-windows-msvc-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --target x86_64-pc-windows-msvc --release --locked
- name: Run UPX
uses: crazy-max/ghaction-upx@v2
with:
version: latest
files: ./target/x86_64-pc-windows-msvc/release/shy.exe
args: -9q
- name: Rename files
env:
VERSION: ${{ github.ref_name }}
run: |
mkdir output/
mv target/x86_64-pc-windows-msvc/release/shy.exe output/shy-$env:VERSION-x86_64-pc-windows-msvc.exe
- name: Upload files
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "output/*"
token: ${{ secrets.GITHUB_TOKEN }}