From 718b24dc98efecfb368e1d99d718f0515b924c18 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 8 Nov 2023 13:04:34 +0000 Subject: [PATCH 1/3] Initial release-drafter with version mimic Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/release-drafter.yml | 1 + .github/workflows/release-drafter.yml | 30 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000000..c905ef6171 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1 @@ +_extends: vector-im/element-web diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000000..f43f9fa6d6 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,30 @@ +name: Release Drafter +on: + push: + branches: [staging] +concurrency: ${{ github.workflow }} +jobs: + element-web: + runs-on: ubuntu-latest + outputs: + version: ${{ steps.release.outputs.tag_name }} + steps: + - name: Get draft release + id: release + uses: cardinalby/git-get-release-action@cedef2faf69cb7c55b285bad07688d04430b7ada # v1 + env: + GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} + repo: vector-im/element-web + with: + latest: true + + draft: + needs: element-web + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@dabcf3767562210392d862070ed2ef6434b9bc6f # v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + disable-autolabeler: true + version-template: ${{ needs.element-web.outputs.version }} From f32dc1ca04e8afc88a65b1e46151babd35885623 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 8 Nov 2023 13:29:06 +0000 Subject: [PATCH 2/3] Add master->develop gitflow action Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/release-gitflow.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/release-gitflow.yml diff --git a/.github/workflows/release-gitflow.yml b/.github/workflows/release-gitflow.yml new file mode 100644 index 0000000000..c25bf52d47 --- /dev/null +++ b/.github/workflows/release-gitflow.yml @@ -0,0 +1,10 @@ +# Gitflow merge-back master->develop +name: Merge master -> develop +on: + push: + branches: [master] +concurrency: ${{ github.repository }}-${{ github.workflow }} +jobs: + merge: + uses: matrix-org/matrix-js-sdk/.github/workflows/release-gitflow.yml@develop + secrets: inherit From a9b0484641cfa9aae92c62a9492ffa628aa6d3c3 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 8 Nov 2023 13:32:28 +0000 Subject: [PATCH 3/3] Add release automations Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..795caa3aa8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,22 @@ +name: Release Process +on: + workflow_dispatch: + inputs: + mode: + description: What type of release + required: true + default: rc + type: choice + options: + - rc + - final +concurrency: ${{ github.workflow }} +jobs: + release: + uses: matrix-org/matrix-js-sdk/.github/workflows/release-action.yml@develop + secrets: inherit + with: + final: ${{ inputs.mode == 'final' }} + include-changes: vector-im/element-web@$VERSION + gpg-fingerprint: ${{ vars.GPG_FINGERPRINT }} + expected-asset-count: 1