Release crates #178
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: Release crates | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 2-6' | |
push: | |
branches: | |
- main | |
paths: | |
- Cargo.toml | |
- crates/**/Cargo.toml | |
jobs: | |
release: | |
name: Publish | |
runs-on: ubuntu-latest | |
environment: crate-publish | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Login to crate.io | |
run: cargo login ${{ secrets.CRATES_IO_TOKEN }} | |
- name: Publish crates to crates.io | |
run: ./scripts/publish-crates.sh --execute |