Skip to content

chore: 6.0.1 bump for doc update (#265) #21

chore: 6.0.1 bump for doc update (#265)

chore: 6.0.1 bump for doc update (#265) #21

Workflow file for this run

name: Tag, Build, Release and Publish
on:
push:
tags:
- 'v*'
jobs:
release_cli:
name: Build nj-cli
runs-on: ${{ matrix.os }}
permissions:
contents: write
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: nj-cli
asset_name: nj-cli-linux-amd64
- os: macos-latest
artifact_name: nj-cli
asset_name: nj-cli-macos-amd64
- os: windows-latest
artifact_name: nj-cli.exe
asset_name: nj-cli.exe
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build nj-cli
run: cargo build --release --manifest-path nj-cli/Cargo.toml
- name: Upload binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
overwrite: true
publish_crates:
name: Publish to Crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/install@v0.1
with:
crate: cargo-workspaces
version: latest
- name: Publish
run: cargo workspaces publish --token ${{ secrets.CRATES_TOKEN }} --from-git --yes