Skip to content

Fix typo in CHANGELOG #2

Fix typo in CHANGELOG

Fix typo in CHANGELOG #2

name: Prepare for a release
on:
push:
tags: 'release-[0-9]+.[0-9]+.[0-9]+'
concurrency: prepare-for-a-release
jobs:
# all tasks that need to be done before we add an X.Y.Z tag
# should be done as a step in the pre-tagging job.
# think of it like this... if when you later checkout the tag for a release,
# should the change be there? if yes, do it here.
pre-tagging:
name: Tasks run before tagging the release
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/[email protected]
with:
ref: "main"
token: ${{ secrets.RELEASE_TOKEN }}
- name: Update CHANGELOG.md
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
with:
entrypoint: update-changelog-for-release
env:
GIT_USER_NAME: "Ponylang Main Bot"
GIT_USER_EMAIL: "[email protected]"
- name: Update VERSION
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
with:
entrypoint: update-version-in-VERSION
env:
GIT_USER_NAME: "Ponylang Main Bot"
GIT_USER_EMAIL: "[email protected]"
- name: Update version in README
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
with:
entrypoint: update-version-in-README
env:
GIT_USER_NAME: "Ponylang Main Bot"
GIT_USER_EMAIL: "[email protected]"
- name: Switch to using prebuilt docker image to run
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
with:
entrypoint: update-action-to-use-docker-image-to-run-action
env:
GIT_USER_NAME: "Ponylang Main Bot"
GIT_USER_EMAIL: "[email protected]"
REGISTRY: "ghcr.io"
# tag for release
# this will kick off the next stage of the release process
# no additional steps should be added to this job
tag-release:
name: Tag the release
needs:
- pre-tagging
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/[email protected]
with:
ref: "main"
token: ${{ secrets.RELEASE_TOKEN }}
- name: Trigger artefact creation
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
with:
entrypoint: trigger-artefact-creation
env:
GIT_USER_NAME: "Ponylang Main Bot"
GIT_USER_EMAIL: "[email protected]"
# all cleanup tags that should happen after tagging for release should happen
# in the post-tagging job. examples of things you might do:
# add a new unreleased section to a changelog
# set a version back to "snapshot"
# in general, post-tagging is for "going back to normal" from tasks that were
# done during the pre-tagging job
post-tagging:
name: Tasks run after tagging the release
needs:
- tag-release
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/[email protected]
with:
ref: "main"
token: ${{ secrets.RELEASE_TOKEN }}
- name: Add "unreleased" section to CHANGELOG.md
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
with:
entrypoint: add-unreleased-section-to-changelog
env:
GIT_USER_NAME: "Ponylang Main Bot"
GIT_USER_EMAIL: "[email protected]"
- name: Switch to building action for each run
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
with:
entrypoint: update-action-to-use-dockerfile-to-run-action
env:
GIT_USER_NAME: "Ponylang Main Bot"
GIT_USER_EMAIL: "[email protected]"