Merge pull request #9 from 0xPlaygrounds/devops/setup-ci-cd #3
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: "Build & Release" | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
on: | ||
push: | ||
branches: | ||
- main | ||
secrets: | ||
CARGO_REGISTRY_TOKEN: | ||
description: "Token to publish to crates.io" | ||
required: true | ||
workflow_dispatch: | ||
jobs: | ||
run-ci: | ||
Check failure on line 18 in .github/workflows/cd.yaml
|
||
uses: ./.github/workflows/ci.yaml | ||
release-plz: | ||
name: Release-plz | ||
needs: run-ci | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Rust toolchain | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- name: Run release-plz | ||
uses: MarcoIeni/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |