From 71808be66abfa8ec6812b78e82ee96cb571e946a Mon Sep 17 00:00:00 2001 From: ndkhanh-axonivy Date: Mon, 19 Aug 2024 14:57:31 +0700 Subject: [PATCH 1/4] Add release-drafter workflow --- .github/workflows/release-drafter.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 00000000000..6d1ccff5376 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,13 @@ +name: Release Drafter + +on: + push: + branches: + - master + pull_request: + types: [opened, reopened, synchronize] + workflow_dispatch: + +jobs: + build: + uses: axonivy-market/github-workflows/.github/workflows/release-drafter.yml@v4 From 8a70251f8d580812c650b3e74320799c1c6e4aed Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Thu, 22 Aug 2024 11:56:12 +0700 Subject: [PATCH 2/4] Update release-drafter workflow --- .github/workflows/release-drafter.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 6d1ccff5376..8ce3bb82ddc 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -1,5 +1,4 @@ name: Release Drafter - on: push: branches: @@ -7,7 +6,21 @@ on: pull_request: types: [opened, reopened, synchronize] workflow_dispatch: - + inputs: + version: + description: 'Release version' + required: true + prerelease: + description: 'Is this a prerelease?' + required: false + default: false + type: boolean +permissions: + contents: write + pull-requests: write jobs: build: uses: axonivy-market/github-workflows/.github/workflows/release-drafter.yml@v4 + with: + version: ${{ github.event.inputs.version }} + prerelease: ${{ github.event.inputs.prerelease }} From 61509f41489a321c3924ddb84d8864bb4b718dd5 Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Mon, 26 Aug 2024 11:09:56 +0700 Subject: [PATCH 3/4] Add publish-release workflow and update release-drafter workflow --- .github/workflows/publish_release.yml | 18 ++++++++++++++++++ .github/workflows/release-drafter.yml | 16 +++------------- 2 files changed, 21 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/publish_release.yml diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml new file mode 100644 index 00000000000..152279f3b03 --- /dev/null +++ b/.github/workflows/publish_release.yml @@ -0,0 +1,18 @@ +name: Publish Release + +on: + push: + tags: + - v*.*.* + +permissions: + contents: write + pull-requests: read + +jobs: + build: + uses: axonivy-market/github-workflows/.github/workflows/publish-release.yml@v4 + # The 'publish_release' input parameter is used to control whether the release should be published automatically. + # Uncomment and set to 'false' if you want to prevent the release from being published immediately. + # with: + # publish_release: false diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 8ce3bb82ddc..99bf6977255 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -1,26 +1,16 @@ name: Release Drafter + on: push: branches: - master pull_request: types: [opened, reopened, synchronize] - workflow_dispatch: - inputs: - version: - description: 'Release version' - required: true - prerelease: - description: 'Is this a prerelease?' - required: false - default: false - type: boolean + permissions: contents: write pull-requests: write + jobs: build: uses: axonivy-market/github-workflows/.github/workflows/release-drafter.yml@v4 - with: - version: ${{ github.event.inputs.version }} - prerelease: ${{ github.event.inputs.prerelease }} From d4118ce47de2dfc3662343f4e45728d8b4967536 Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Mon, 26 Aug 2024 11:49:52 +0700 Subject: [PATCH 4/4] Add publish-release workflow and update release-drafter workflow --- .github/workflows/{publish_release.yml => publish-release.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{publish_release.yml => publish-release.yml} (96%) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish-release.yml similarity index 96% rename from .github/workflows/publish_release.yml rename to .github/workflows/publish-release.yml index 152279f3b03..9ec6a57577d 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish-release.yml @@ -3,7 +3,7 @@ name: Publish Release on: push: tags: - - v*.*.* + - "v*.*.*" permissions: contents: write