From 0d02d75be414335bf276e28eaf2420b794dc32fd Mon Sep 17 00:00:00 2001 From: Mateusz Hawrus <48822818+nieomylnieja@users.noreply.github.com> Date: Thu, 15 Feb 2024 16:36:10 +0100 Subject: [PATCH] chore: Add release candidate workflow (#167) ## Motivation In order to mimic the release flow of sloctl we should be able to create release candidate which would not be pushed to Terraform registry but would still trigger acceptance tests. --- .github/workflows/release-candidate.yml | 11 +++++++++++ .github/workflows/release.yml | 6 ++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release-candidate.yml diff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.yml new file mode 100644 index 00000000..6e0986e4 --- /dev/null +++ b/.github/workflows/release-candidate.yml @@ -0,0 +1,11 @@ +name: Release candidate +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+" +jobs: + test: + uses: ./.github/workflows/acc-tests.yml + with: + clientId: "${{ vars.TERRAFORM_NOBL9_CLIENT_ID }}" + clientSecret: "${{ secrets.TERRAFORM_NOBL9_CLIENT_SECRET }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f281bce1..60638897 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,11 +9,13 @@ # You will need to pass the `--batch` flag to `gpg` in your signing step # in `goreleaser` to indicate this is being used in a non-interactive mode. # -name: release +name: Release on: push: tags: - - "v*" + - "v[0-9]+.[0-9]+.[0-9]+" + - "v[0-9]+.[0-9]+.[0-9]+-beta" + - "v[0-9]+.[0-9]+.[0-9]+-alpha" jobs: goreleaser: runs-on: ubuntu-latest