Don't generate in CI for now #16
Workflow file for this run
This file contains hidden or 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 Packages | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| jobs: | |
| publish-rust: | |
| runs-on: ubuntu-latest | |
| environment: release # Optional: for enhanced security | |
| permissions: | |
| contents: read | |
| id-token: write # Required for OIDC token exchange | |
| steps: | |
| - name: Setup Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c | |
| with: | |
| toolchain: nightly,stable | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - uses: rust-lang/crates-io-auth-action@e919bc7605cde86df457cf5b93c5e103838bd879 | |
| id: auth | |
| - run: cargo publish | |
| env: | |
| CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} | |
| publish-schema: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - name: Create release if missing | |
| run: | | |
| tag="${GITHUB_REF#refs/tags/}" | |
| if ! gh release view "$tag" >/dev/null 2>&1; then | |
| gh release create "$tag" --title "$tag" | |
| fi | |
| - name: Upload schema assets | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| tag="${GITHUB_REF#refs/tags/}" | |
| gh release upload "$tag" schema.json meta.json --clobber |