Skip to content

Commit

Permalink
add action release
Browse files Browse the repository at this point in the history
  • Loading branch information
dovahcrow authored and helius-kurt committed Jun 3, 2024
1 parent 9d0d1d8 commit 2286548
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: release

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly

- name: Install bpf-linker
uses: actions-rs/cargo@v1
with:
command: install
args: bpf-linker

- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- uses: actions-rs/cargo@v1
with:
command: xtask
args: build-ebpf --release

- uses: actions-rs/cargo@v1
with:
command: build
args: --release

- uses: ncipollo/release-action@v1
with:
artifacts: target/release/validator-firewall
omitBody: true
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2286548

Please sign in to comment.