From e0c058c40200d4b08d0be31b6543a25c673d23f8 Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Fri, 23 Aug 2024 11:39:51 +0700 Subject: [PATCH] Add publish-release workflow and update release-drafter workflow --- .github/workflows/publish_release.yml | 18 ++++++++++++++++++ .github/workflows/release-drafter.yml | 13 ------------- 2 files changed, 18 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 0000000..152279f --- /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 9a46fc0..99bf697 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -6,16 +6,6 @@ on: - 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 @@ -24,6 +14,3 @@ permissions: jobs: build: uses: axonivy-market/github-workflows/.github/workflows/release-drafter.yml@v4 - with: - version: ${{ github.event.inputs.version }} - prerelease: ${{ github.event.inputs.prerelease }}