From c384094c826ec0cd1771f583ed6cb34da996eaf0 Mon Sep 17 00:00:00 2001 From: Mikael Mello Date: Fri, 7 Apr 2023 19:58:48 -0700 Subject: [PATCH] Add release workflow --- .github/workflows/release.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..a94071bb --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: Open a release PR +on: + workflow_dispatch: + inputs: + version: + description: Version to release + required: true + type: choice + options: + - major + - minor + - patch + +env: + CRATE_NAME: inquire + +jobs: + make-release-pr: + permissions: + id-token: write # Enable OIDC + pull-requests: write + contents: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: chainguard-dev/actions/setup-gitsign@main + - name: Install cargo-release + uses: taiki-e/install-action@v1 + with: + tool: cargo-release + + - uses: cargo-bins/release-pr@v2 + with: + check-semver: true + pr-release-notes: true + base-branch: main + crate-name: ${{ env.CRATE_NAME }} + github-token: ${{ secrets.GITHUB_TOKEN }} + version: ${{ inputs.version }}