Skip to content

Crates.io Release

Crates.io Release #12

name: Crates.io Release
on:
workflow_run:
workflows: ["build-and-release"]
types:
- completed
workflow_dispatch:
jobs:
release-crates:
name: Release crates.io
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
# We might need to wait some time between publishes
- run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} -p siera-logger
- run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} -p siera-agent
- run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} -p siera-afj-rest
- run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} -p siera-cloudagent-python
- run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} -p siera-automations
- run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} -p siera