mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-24 04:36:33 +08:00
Implements date-based versioning, based on the RFC at https://meta.discourse.org/t/383536 Manual version-bump tasks are removed, and replaced with new `release:*` rake tasks. These are run in GitHub actions. Release process will work something like: 1. Trigger `release-prepare-latest-bump` via workflow_dispatch. This will create a PR which bumps the in-development version to the next `-latest` 2. Merge that PR 3. `release-handler` will be triggered automatically, tag the commit with `v0000.00.0-latest`, and cut a `release/xxxx.xx` branch from the previous commit 4. `release-prepare-bump` will be triggered automatically, and create a PR which bumps the version on `release/xxxx.xx` branch to remove the `-latest` suffix 5. Merge that PR 6. `release-handler` will be triggered automatically, and will tag the commit with `v0000.00.0` In future, we will add handling for ESR, and new workflows for security fixes.
39 lines
954 B
YAML
Vendored
39 lines
954 B
YAML
Vendored
name: Release - prepare bump on release branch
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
branch:
|
|
description: "The release branch to prepare the next version for, e.g. `release/2015.11`"
|
|
required: true
|
|
type: string
|
|
push:
|
|
branches:
|
|
- release/*
|
|
paths-ignore: # a version bump on a release branch should not trigger another version bump PR
|
|
- 'lib/version.rb'
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
build:
|
|
name: run
|
|
runs-on: ubuntu-latest
|
|
container: discourse/discourse_test:slim
|
|
timeout-minutes: 10
|
|
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
filter: tree:0
|
|
fetch-depth: 0
|
|
|
|
- uses: ./.github/actions/setup-release-environment
|
|
|
|
- name: Create a PR for the next version bump
|
|
run: bin/rake "release:prepare_next_version_branch[${{ inputs.branch || github.ref_name }}]"
|