Skip to content

Commit bbc9a2e

Browse files
author
Brean
committed
Added workflow for CI/CD
.
1 parent 901cbaa commit bbc9a2e

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build-release:
10+
name: Build and Release Linux Binary
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Install Rust
18+
uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: stable
21+
override: true
22+
23+
- name: Build binary
24+
run: cargo build --release
25+
26+
- name: Upload release binary
27+
uses: softprops/action-gh-release@v1
28+
with:
29+
files: target/release/node-cleaner
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)