diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..db659f0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +--- +name: Release openqasm3_parser +on: + push: + tags: + - '*' + +jobs: + publish_crates: + name: Publish openqasm3_parser crates + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + crate: [oq3_lexer, oq3_parser, oq3_syntax, oq3_source_file, oq3_semantics] + + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - name: Run cargo publish + run: | + cd crates/${{ matrix.crate }} + cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}