Skip to content

Commit

Permalink
use real dry-run arg to check everything is fine before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Dec 6, 2023
1 parent 2f8453e commit e016937
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,22 @@ on:
name:
description: 'Manually triggered'
jobs:
publish-dry-run:
if: ${{ github.event_name != 'workflow_dispatch' }}
name: Dry-run publish packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
args: --no-verify --dry-run
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
publish:
if: ${{ github.event_name != 'workflow_dispatch' }}
name: Publish ledger_device_sdk
runs-on: ubuntu-latest
steps:
Expand All @@ -25,6 +40,5 @@ jobs:
- uses: katyo/publish-crates@v2
with:
args: --no-verify
# Only publish when workflow triggered by hand for the moment
dry-run: ${{ github.event_name != 'workflow_dispatch' }}
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit e016937

Please sign in to comment.