From d2cbf1dcea23953c851c8f42393861efc7614360 Mon Sep 17 00:00:00 2001 From: Mikael Moilanen Date: Fri, 29 Nov 2024 14:10:36 +0200 Subject: [PATCH] Add new ci workflows with releases --- .github/workflows/pr-test.yml | 2 +- .github/workflows/production.yml | 4 ++-- .github/workflows/release-drafter.yml | 26 ++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index 2840005f..372afaf0 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -1,5 +1,5 @@ ## -# Runs builds on GitHub pull requests to test that they should be working fine. +# Runs builds and e2e tests ## name: Test builds on: diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index d8bcf413..d893f20a 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -1,8 +1,8 @@ name: Production deployment on: - push: - branches: [main] + release: + types: [released] workflow_dispatch: env: diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 00000000..f397dbaf --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,26 @@ +name: Release draft + +on: + # Update release draft on pushes to the main branch + push: + branches: [main] + # Run on PRs only for autolabeler + pull_request: + types: [opened, reopened, synchronize] + +permissions: + contents: read + +jobs: + update-draft: + name: Update draft + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v6 + with: + commitish: main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}