Skip to content

Commit

Permalink
Adding rust release CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Feb 28, 2022
1 parent a4a68de commit 1d29a51
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/rust-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Node Release

env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

on:
push:
tags:
- v*

jobs:
rust_publish:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v1

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

- name: Cache Cargo Registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}

- name: Publish package rust
working-directory: ./bindings/node
run: cargo publish --token ${CRATES_TOKEN}

0 comments on commit 1d29a51

Please sign in to comment.