Skip to content

Commit e62bf04

Browse files
committed
Add GitHub release workflow
1 parent 1266307 commit e62bf04

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release Windows EXE
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-and-release:
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Install Rust
20+
uses: dtolnay/rust-toolchain@stable
21+
with:
22+
targets: x86_64-pc-windows-msvc
23+
24+
- name: Build release
25+
run: cargo build --release --target x86_64-pc-windows-msvc
26+
27+
- name: Create archive
28+
run: |
29+
cd target/x86_64-pc-windows-msvc/release
30+
7z a ../../../linux_file_viewer-windows-x64.zip linux_file_viewer.exe
31+
32+
- name: Create GitHub Release
33+
uses: softprops/action-gh-release@v2
34+
with:
35+
files: linux_file_viewer-windows-x64.zip
36+
generate_release_notes: true

0 commit comments

Comments
 (0)