Skip to content

release

release #2

Workflow file for this run

name: release
on:
release:
types: [published]
env:
CARGO_TERM_COLOR: always
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Install Rust stable
uses: dtolnay/rust-toolchain@f7ccc83f9ed1e5b9c81d8a67d7ad1a747e22a561 # stable
with:
components: clippy
- name: Using Rust cache
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
with:
cache-all-crates: "true"
- name: Check
run: cargo check --workspace --all-targets
- name: Clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Test
run: cargo test --workspace
publish:
needs: verify
runs-on: ubuntu-latest
environment: crates-io
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Install Rust stable
uses: dtolnay/rust-toolchain@f7ccc83f9ed1e5b9c81d8a67d7ad1a747e22a561 # stable
- name: Publish to crates.io
uses: katyo/publish-crates@02cc2f1ad653fb25c7d1ff9eb590a8a50d06186b # v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
bump-patch:

Check failure on line 52 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 52, Col: 3): Error calling workflow 'plotnik-lang/plotnik/.github/workflows/bump.yml@9a30b837f0b6ecb6182ab3a844e4214ec0a96473'. The nested job 'bump' is requesting 'contents: write, pull-requests: write', but is only allowed 'contents: read, pull-requests: none'.
needs: publish
uses: ./.github/workflows/bump.yml
with:
bump: patch
secrets:
PLOTNIK_PAT: ${{ secrets.PLOTNIK_PAT }}