Skip to content

Commit

Permalink
added crates.io token to publish packages as cratesio-ledger
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Dec 6, 2023
1 parent f9a79bb commit 885b0da
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: Publishing packages on crates.io

on:
push:
tags:
- ledger_device_sdk-*
- ledger_secure_sdk_sys-*
branches:
- master
pull_request:
workflow_dispatch:
inputs:
name:
description: 'Manually triggered'
jobs:
print_context:
runs-on: ubuntu-latest
steps:
- env:
EVENT_CONTEXT: ${{ toJSON(github.event.pull_request) }}
run: |
echo $EVENT_CONTEXT
publish:
name: Publish ledger_device_sdk
runs-on: ubuntu-latest
Expand All @@ -26,7 +25,6 @@ jobs:
- uses: katyo/publish-crates@v2
with:
args: --no-verify
dry-run: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}



# Only publish when workflow triggered by hand for the moment
dry-run: ${{ ! github.event_name == 'workflow_dispatch' }}
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 885b0da

Please sign in to comment.