Skip to content

Release crates

Release crates #178

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