Move response logic out of runway (#496) #161
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to crates.io | |
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 }} | |
publish-delay: 30000 | |
dry-run: ${{ github.event_name != 'push' }} |