codespace 0.0.1-alpha.1

A structured container for generated Rust code
Documentation
# adapted from oxnet's release workflow. Publishing uses a crates.io
# token (stored as the CARGO_REGISTRY_TOKEN repo secret); scope the token
# to this crate with only publish-new/publish-update.

name: Publish release
on:
  push:
    tags:
      - "v*"

permissions: {}

jobs:
  create-release:
    runs-on: ubuntu-latest
    permissions:
      # for creating the GitHub release
      contents: write
    steps:
      - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
        with:
          persist-credentials: false
      - name: Install Rust
        uses: dtolnay/rust-toolchain@stable
      - run: cargo publish -p codespace
        env:
          CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
      - uses: taiki-e/create-gh-release-action@72d65cee1f8033ef0c8b5d79eaf0c45c7c578ce3 # v1
        with:
          changelog: CHANGELOG.md
          title: codespace $version
          branch: main
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}