-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 872 Bytes
/
release.yml
File metadata and controls
39 lines (31 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: "."
- name: Build release binary
run: cargo build --release
- name: Package zip
id: pack
shell: pwsh
run: |
$tag = '${{ github.ref_name }}'
$zip = "filelens-$tag-windows-x86_64.zip"
Compress-Archive -LiteralPath "target/release/filelens.exe" -DestinationPath $zip -Force
echo "path=$zip" >> $env:GITHUB_OUTPUT
- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.pack.outputs.path }}
generate_release_notes: true