From 8ae3daf20d83a9e78226fead78c766cb4e9e7dcf Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Mon, 26 Aug 2024 11:01:19 +0700 Subject: [PATCH 1/3] 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 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 8ce3bb8..99bf697 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 cc4c7fd8c8d63c2899d0b61f8cad6ee2ea1e40d5 Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Mon, 26 Aug 2024 11:35:24 +0700 Subject: [PATCH 2/3] Add publish-release workflow and update release-drafter workflow --- .github/workflows/publish-release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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..9ec6a57 --- /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 From 692182ede08f0983db52aefacb64232ec463801e Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Mon, 26 Aug 2024 11:43:26 +0700 Subject: [PATCH 3/3] Add publish-release workflow and update release-drafter workflow --- .github/workflows/publish_release.yml | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 .github/workflows/publish_release.yml diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml deleted file mode 100644 index 152279f..0000000 --- a/.github/workflows/publish_release.yml +++ /dev/null @@ -1,18 +0,0 @@ -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