particle-os-cli/.github/workflows/release.yml
2024-01-24 17:38:42 -05:00

42 lines
1 KiB
YAML

name: Release
# how to trigger: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
on:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
release-pr:
runs-on: ubuntu-latest
permissions:
id-token: write # Enable OIDC
contents: write
pull-requests: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
target/
~/.cargo/bin/
~/.cargo/git/db/
~/.cargo/registry/index/
~/.cargo/registry/cache/
key: ${{ runner.os }}-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }}
- uses: chainguard-dev/actions/setup-gitsign@main
# Pulling rust toolchain & install linux dependencies
- uses: dtolnay/rust-toolchain@stable
- name: Install cargo-release
uses: taiki-e/install-action@v1
with:
tool: cargo-smart-release
- name: Release
run: cargo smart-release -ue