Skip to content

Commit

Permalink
use ignore-unpublished-changes for dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Dec 6, 2023
1 parent 1ac7593 commit d7ef30b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
tags:
- ledger_device_sdk-*
- ledger_secure_sdk_sys-*
- include_gif-*
- testmacro-*
branches:
- master
pull_request:
Expand All @@ -14,18 +16,20 @@ on:
description: 'Manually triggered'
jobs:
publish:
name: Publish packages
if: github.ref_type == 'tag' && contains(github.ref_name, 'ledger_device_sdk-')
name: publish ledger_device_sdk
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: ${{ github.event_name != 'workflow_dispatch' }}
check-repo: ${{ github.event_name == 'workflow_dispatch' }}
check-repo: true
ignore-unpublished-changes: ${{ github.event_name != 'workflow_dispatch' }}
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit d7ef30b

Please sign in to comment.