Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
makspll committed Dec 2, 2024
2 parents d643afb + c8a1eed commit 2399648
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: Release

on: workflow_dispatch
inputs:
dry-run:
description: 'Run cargo publish --dry-run'
required: true
type: boolean
default: true
on:
workflow_dispatch:
inputs:
dry-run:
description: 'Run cargo publish --dry-run'
required: true
type: boolean
default: true

jobs:
publish:
Expand Down Expand Up @@ -38,11 +39,11 @@ jobs:
${{ runner.os }}-cargo-index-
- name: Run cargo publish
if : ${{ inputs.dry-run == 'false' }}
if : ${{ !fromJSON(inputs.dry-run) }}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish

- name: Run cargo publish --dry-run
if : ${{ inputs.dry-run == 'true' }}
run: cargo publish --dry-run
if : ${{ fromJSON(inputs.dry-run) }}
run: cargo publish --dry-run

0 comments on commit 2399648

Please sign in to comment.