Skip to content

Publish Crate

Publish Crate #2

Workflow file for this run

name: Publish Crate
on:
workflow_dispatch:
inputs:
dry-run:
description: 'Is this a dry-run?'
required: true
default: true
type: boolean
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/[email protected]
with:
toolchain: stable
- name: Cargo Publish (Dry Run)
if: ${{ inputs.dry-run === 'true' }}

Check failure on line 24 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish Crate

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 24, Col: 12): Unexpected symbol: '='. Located at position 18 within expression: inputs.dry-run === 'true' .github/workflows/publish.yml (Line: 30, Col: 12): Unexpected symbol: '='. Located at position 18 within expression: inputs.dry-run !== 'true'
run: cargo publish --dry-run --token ${CRATES_TOKEN} -p antithesis_sdk
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Cargo Publish
if: ${{ inputs.dry-run !== 'true' }}
run: echo we will publish for real
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}