particle-os-cli/.github/workflows/release.yml
N16hth4wk 99649d2d88
ci: Create GitHub Workflow (#9)
Add support for building, tagging, and releasing via CICD

---------

Co-authored-by: Gerald Pinder <gmpinder@gmail.com>
2024-01-23 20:07:48 -05:00

46 lines
1.1 KiB
YAML

name: Open a release PR
# how to trigger: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
on:
workflow_dispatch:
inputs:
version:
description: Version to release
required: true
type: string
env:
CARGO_TERM_COLOR: always
jobs:
release-pr:
runs-on: ubuntu-latest
permissions:
id-token: write # Enable OIDC
contents: write
pull-requests: 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