Skip to content

Commit

Permalink
Create build-and-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aeghn authored Nov 1, 2024
1 parent 56a3fb8 commit ea26077
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-and-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Package

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Build the project
run: cargo build --release

- name: Package the binary
run: |
mkdir -p output
cp target/release/restop output/restop
- name: Upload package
uses: actions/upload-artifact@v2
with:
name: nightly-package
path: output/restop

0 comments on commit ea26077

Please sign in to comment.