Skip to content

Commit 4ce96c8

Browse files
adding a manual release github workflow
1 parent eaf6813 commit 4ce96c8

2 files changed

Lines changed: 35 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: OSCPS_Release_Workflow
2+
3+
on:
4+
workflow_dispatch: # Enables manual triggering from GitHub Actions UI
5+
6+
jobs:
7+
build:
8+
name: Build and Release
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Install Rust
16+
uses: dtolnay/rust-toolchain@stable
17+
18+
- name: Build release binary
19+
run: cargo build --release
20+
21+
- name: Compress binary
22+
run: |
23+
mkdir -p release
24+
cp target/release/your-binary-name release/
25+
cd release
26+
tar -czvf your-binary-name-linux.tar.gz your-binary-name
27+
shell: bash
28+
29+
- name: Create GitHub Release and Upload Binary
30+
uses: softprops/action-gh-release@v2
31+
with:
32+
files: release/your-binary-name-linux.tar.gz
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+

oscps-lib/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,3 @@ pub mod connector;
1111
pub mod simulation;
1212
pub mod thermodynamics;
1313

14-
/// An example function. This will be removed in the final release.
15-
pub fn hello() -> String {
16-
"Hello, world!".to_string()
17-
}

0 commit comments

Comments
 (0)