Skip to content

Commit d1f3ec4

Browse files
committed
init: initial commit
0 parents  commit d1f3ec4

40 files changed

Lines changed: 7107 additions & 0 deletions

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release Binary
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # e.g., v1.0.0
7+
8+
jobs:
9+
release-windows:
10+
name: Build and Release (Windows)
11+
runs-on: windows-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Install Rust
18+
uses: dtolnay/rust-toolchain@stable
19+
20+
- name: Build release binary
21+
run: cargo build --release --target x86_64-pc-windows-msvc
22+
23+
- name: Package binary
24+
run: |
25+
mkdir dist
26+
cp target/x86_64-pc-windows-msvc/release/ferriskeys.exe dist/
27+
28+
- name: Generate SHA-256 checksum
29+
shell: powershell
30+
run: |
31+
$hash = Get-FileHash "dist\ferriskeys.exe" -Algorithm SHA256
32+
"$($hash.Hash) *ferriskeys.exe" | Out-File -Encoding ASCII -NoNewline "dist\SHA256SUMS.txt"
33+
34+
- name: Upload Release Assets
35+
uses: softprops/action-gh-release@v2
36+
with:
37+
files: |
38+
dist/ferriskeys.exe
39+
dist/SHA256SUMS.txt
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.FERRISKEYS_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

0 commit comments

Comments
 (0)