2023-11-13 18:49:01 +08:00
|
|
|
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:
|
2023-11-24 22:32:17 +08:00
|
|
|
uses: matrix-org/matrix-js-sdk/.github/workflows/release-make.yml@develop
|
2023-11-14 23:25:42 +08:00
|
|
|
secrets:
|
|
|
|
ELEMENT_BOT_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
|
|
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
|
|
|
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
2023-11-13 18:49:01 +08:00
|
|
|
with:
|
|
|
|
final: ${{ inputs.mode == 'final' }}
|
|
|
|
gpg-fingerprint: ${{ vars.GPG_FINGERPRINT }}
|
|
|
|
asset-path: dist/*.tar.gz
|
|
|
|
expected-asset-count: 3
|
2024-02-02 22:29:58 +08:00
|
|
|
|
2024-02-27 23:00:31 +08:00
|
|
|
notify-downstream:
|
|
|
|
name: Trigger release drafter downstream
|
|
|
|
needs: release
|
2024-10-17 18:10:32 +08:00
|
|
|
runs-on: ubuntu-24.04
|
2024-02-27 23:00:31 +08:00
|
|
|
steps:
|
|
|
|
- name: Notify element-desktop repo that element-web release has completed to re-trigger release-drafter
|
2024-08-22 22:37:39 +08:00
|
|
|
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1
|
2024-02-27 23:00:31 +08:00
|
|
|
with:
|
2024-06-25 21:31:30 +08:00
|
|
|
workflow: release-drafter.yml
|
|
|
|
repo: element-hq/element-desktop
|
|
|
|
ref: staging
|
|
|
|
# Required when using the `repo` option. Either a PAT or a token generated from the GitHub app or CLI
|
|
|
|
token: "${{ secrets.ELEMENT_BOT_TOKEN }}"
|
2024-02-27 23:00:31 +08:00
|
|
|
|
2024-02-02 22:29:58 +08:00
|
|
|
check:
|
|
|
|
name: Post release checks
|
2024-02-03 00:23:54 +08:00
|
|
|
needs: release
|
2024-10-17 18:10:32 +08:00
|
|
|
runs-on: ubuntu-24.04
|
2024-02-02 22:29:58 +08:00
|
|
|
steps:
|
|
|
|
- name: Wait for dockerhub
|
|
|
|
uses: t3chguy/wait-on-check-action@18541021811b56544d90e0f073401c2b99e249d6 # fork
|
|
|
|
with:
|
|
|
|
ref: master
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
wait-interval: 10
|
2024-11-05 22:02:25 +08:00
|
|
|
check-name: "Docker Buildx"
|
2024-02-02 22:29:58 +08:00
|
|
|
allowed-conclusions: success
|
|
|
|
|
|
|
|
- name: Wait for debian package
|
|
|
|
uses: t3chguy/wait-on-check-action@18541021811b56544d90e0f073401c2b99e249d6 # fork
|
|
|
|
with:
|
|
|
|
ref: master
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
wait-interval: 10
|
|
|
|
check-name: Build package
|
|
|
|
allowed-conclusions: success
|