Compare commits

...

3 Commits

Author SHA1 Message Date
Michael Telatynski
cddc6d115a
Fix passing secrets
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-01-31 09:34:54 +00:00
Michael Telatynski
72aba9b214
Rename -action to -workflow to make linter happy
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-01-30 16:04:51 +00:00
Michael Telatynski
d7148f6708
Rebuild release automation to provide better introspection
1. Draft releases are triggered by the release person
2. Draft releases are inspected & tested along with their artifacts & notes
3. Draft releases are published when ready and this kicks off any deploys e.g. npm, docs, etc

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-01-29 18:24:52 +00:00
2 changed files with 36 additions and 30 deletions

View File

@ -1,21 +1,42 @@
name: Release Drafter name: Release Drafter
on: on:
push:
branches: [staging]
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version-bump:
description: The scale of the version bump required for semver compatibility
required: true
default: automatic
type: choice
options:
- automatic
- patch
- minor
- major
type:
description: The type of release to make
required: true
default: release-candidate
type: choice
options:
- release-candidate
- release
- hotfix
previous-version: previous-version:
description: What release to use as a base for release note purposes description: What release to use as a base for release note purposes, defaults to the latest stable release.
required: false required: false
type: string type: string
concurrency: ${{ github.workflow }} concurrency: ${{ github.workflow }}
jobs: jobs:
draft: draft:
runs-on: ubuntu-latest uses: matrix-org/matrix-js-sdk/.github/workflows/release-drafter-workflow.yml@develop
steps: secrets:
- uses: release-drafter/release-drafter@e64b19c4c46173209ed9f2e5a2f4ca7de89a0e86 # v5 ELEMENT_BOT_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
env: GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
with: with:
disable-autolabeler: true version-bump: ${{ inputs.version-bump }}
previous-version: ${{ inputs.previous-version }} previous-version: ${{ inputs.previous-version }}
final: ${{ inputs.type != 'release-candidate' }}
include-changes: element-hq/element-web@$VERSION
gpg-fingerprint: ${{ vars.GPG_FINGERPRINT }}
expected-asset-count: 1

View File

@ -1,25 +1,10 @@
name: Release Process name: Post Release Process
on: on:
workflow_dispatch: release:
inputs: types: [published]
mode:
description: What type of release
required: true
default: rc
type: choice
options:
- rc
- final
concurrency: ${{ github.workflow }} concurrency: ${{ github.workflow }}
jobs: jobs:
release: release:
uses: matrix-org/matrix-js-sdk/.github/workflows/release-make.yml@develop uses: matrix-org/matrix-js-sdk/.github/workflows/release-workflow.yml@develop
secrets: secrets:
ELEMENT_BOT_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }} ELEMENT_BOT_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
with:
final: ${{ inputs.mode == 'final' }}
include-changes: element-hq/element-web@$VERSION
gpg-fingerprint: ${{ vars.GPG_FINGERPRINT }}
expected-asset-count: 1