Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/launcher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Served launcher"

# A stand-in, like release.yml: it registers next-docker's workflow of the
# same name, which deploys docker.ghost.org, so that it can be run again by
# hand:
#
# gh workflow run launcher.yml --ref next-docker -f tag=vX.Y.Z-beta.N
#
# Run on main, it does nothing but say so. It is replaced when next-docker
# merges into main.
on:
workflow_dispatch:
inputs:
tag:
description: The release whose launcher to serve
type: string
required: true

permissions:
contents: read

jobs:
refuse:
name: The launcher is served from next-docker
runs-on: ubuntu-latest
steps:
- run: |
echo "::error::Run this workflow on next-docker: gh workflow run launcher.yml --ref next-docker -f tag=..."
exit 1
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release

# A stand-in. GitHub dispatches only workflows whose file is on the default
# branch, and releases are cut from next-docker, whose own release.yml is the
# real workflow. This file registers it, so that it can be run:
#
# gh workflow run release.yml --ref next-docker
#
# or Actions → Release → Run workflow, choosing next-docker. Run on main, it
# does nothing but say so. It is replaced when next-docker merges into main.
on:
workflow_dispatch:
inputs:
bump-type:
description: Version bump
type: choice
options:
- auto
- patch
- minor
- major
default: auto
stable:
description: A release rather than a beta
type: boolean
default: false
dry-run:
description: Work out the release without tagging or publishing anything
type: boolean
default: false

permissions:
contents: read

jobs:
refuse:
name: Releases are cut from next-docker
runs-on: ubuntu-latest
steps:
- run: |
echo "::error::Run this workflow on next-docker: gh workflow run release.yml --ref next-docker"
exit 1
Loading