v0.2.3 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish crate | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
env: | |
CJSON_INCLUDE_PATH: /usr/include/cjson | |
CJSON_LIB_PATH: /usr/local/lib | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install cJSON | |
run: sudo apt-get install -y libcjson-dev | |
- name: Set up Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Publish crate to crates.io | |
uses: katyo/publish-crates@v2 | |
with: | |
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} |