New release automations (#1318)

This commit is contained in:
Michael Telatynski 2023-11-14 10:54:42 +00:00 committed by GitHub
parent b2b7bcb5af
commit 7c65dbf549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 63 additions and 0 deletions

1
.github/release-drafter.yml vendored Normal file
View File

@ -0,0 +1 @@
_extends: vector-im/element-web

30
.github/workflows/release-drafter.yml vendored Normal file
View File

@ -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 }}

10
.github/workflows/release-gitflow.yml vendored Normal file
View File

@ -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

22
.github/workflows/release.yml vendored Normal file
View File

@ -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