From 1c11db2b0913ab87eeea5324b3f08e458a7db41c Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Tue, 22 Oct 2024 21:50:18 -0400 Subject: [PATCH] Add release workflow Use https://crates.io/crates/auto-release to release to crates.io and create a git tag when a release PR is merged. --- .github/workflows/release.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..ee4d20b --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,19 @@ +on: + push: + branches: + - main + +name: Release + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: cargo install auto-release + - run: auto-release --condition subject -p ovmf-prebuilt + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}