-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
3 changed files
with
61 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,53 @@ | ||
name: Release Drafter | ||
on: | ||
push: | ||
branches: [staging] | ||
workflow_dispatch: | ||
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: | ||
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 | ||
type: string | ||
matrix-react-sdk: | ||
description: React SDK version to use (current|X.Y.Z) | ||
required: false | ||
default: current | ||
type: string | ||
matrix-js-sdk: | ||
description: JS SDK version to use (current|X.Y.Z) | ||
required: false | ||
default: current | ||
type: string | ||
concurrency: ${{ github.workflow }} | ||
jobs: | ||
draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/release-drafter@e64b19c4c46173209ed9f2e5a2f4ca7de89a0e86 # v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
disable-autolabeler: true | ||
previous-version: ${{ inputs.previous-version }} | ||
uses: matrix-org/matrix-js-sdk/.github/workflows/release-drafter-action.yml@develop | ||
secrets: inherit | ||
with: | ||
version-bump: ${{ inputs.version-bump }} | ||
previous-version: ${{ inputs.previous-version }} | ||
final: ${{ inputs.type != 'release-candidate' }} | ||
include-changes: matrix-react-sdk | ||
gpg-fingerprint: ${{ vars.GPG_FINGERPRINT }} | ||
asset-path: dist/*.tar.gz | ||
expected-asset-count: 3 | ||
dependencies: | | ||
matrix-react-sdk=${{ inputs.matrix-react-sdk }} | ||
matrix-js-sdk=${{ inputs.matrix-js-sdk }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,10 @@ | ||
name: Release Process | ||
name: Post Release Process | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
mode: | ||
description: What type of release | ||
required: true | ||
default: rc | ||
type: choice | ||
options: | ||
- rc | ||
- final | ||
matrix-react-sdk: | ||
description: React SDK version to use (current|X.Y.Z) | ||
required: false | ||
default: current | ||
type: string | ||
matrix-js-sdk: | ||
description: JS SDK version to use (current|X.Y.Z) | ||
required: false | ||
default: current | ||
type: string | ||
release: | ||
types: [published] | ||
concurrency: ${{ github.workflow }} | ||
jobs: | ||
release: | ||
uses: matrix-org/matrix-js-sdk/.github/workflows/release-make.yml@develop | ||
uses: matrix-org/matrix-js-sdk/.github/workflows/release-action.yml@develop | ||
secrets: | ||
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: matrix-react-sdk | ||
gpg-fingerprint: ${{ vars.GPG_FINGERPRINT }} | ||
asset-path: dist/*.tar.gz | ||
expected-asset-count: 3 | ||
dependencies: | | ||
matrix-react-sdk=${{ inputs.matrix-react-sdk }} | ||
matrix-js-sdk=${{ inputs.matrix-js-sdk }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters