Skip to content

Commit

Permalink
Make publish crate worklow a dry run on PR. (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin-Radecki authored Nov 29, 2024
1 parent 22d44b6 commit 6ef434f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,30 @@ on:
push:
branches:
- main
pull_request:

jobs:
publish:
environment: Autobump version
runs-on: ubuntu-latest
if: ${{ github.repository == 'Cardinal-Cryptography/AlephBFT'}}
steps:
- name: Publish
if: ${{ github.event_name == 'push' }}
run:
echo "Publishing crates."

- name: Dry-ryn
if: ${{ github.event_name != 'push' }}
run:
echo "Dry-run - not publishing crates."

- uses: actions/checkout@v4

- uses: ./.github/actions/install-rust-toolchain

- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CRATES_IO_TOKEN }}
ignore-unpublished-changes: true
publish-delay: 30000
dry-run: ${{ github.event_name != 'push' }}

0 comments on commit 6ef434f

Please sign in to comment.