Skip to content

Commit 348be64

Browse files
committed
Make GitHub Workflow directly output the .exe
1 parent c15487c commit 348be64

1 file changed

Lines changed: 24 additions & 29 deletions

File tree

.github/workflows/release.yml

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,31 @@
11
name: Release Windows EXE
22

33
on:
4-
push:
5-
tags:
6-
- 'v*'
4+
push:
5+
tags:
6+
- "v*"
77

88
permissions:
9-
contents: write
9+
contents: write
1010

1111
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
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 GitHub Release
28+
uses: softprops/action-gh-release@v2
29+
with:
30+
files: linux_file_viewer.exe
31+
generate_release_notes: true

0 commit comments

Comments
 (0)