Skip to content

ci: add release please manifest & move files (#58) #58

ci: add release please manifest & move files (#58)

ci: add release please manifest & move files (#58) #58

name: release-please
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
Publish:
needs:
- release-please
if: needs.release-please.outputs.release_created
runs-on: ubuntu-latest
environment: crates.io
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Publish crates
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}