Skip to content

Release 0.0.1

Release 0.0.1 #1

name: Prepare for a release
on:
push:
tags: release-\d+.\d+.\d+
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/checkout@v2
with:
ref: "main"
token: ${{ secrets.RELEASE_TOKEN }}
- name: Update CHANGELOG.md
uses: ponylang/release-bot-action@0.6.1
with:
entrypoint: update-changelog-for-release
env:
GIT_USER_NAME: "redvers"
GIT_USER_EMAIL: "red@infect.me"
- name: Update VERSION
uses: ponylang/release-bot-action@0.6.1
with:
entrypoint: update-version-in-VERSION
env:
GIT_USER_NAME: "redvers"
GIT_USER_EMAIL: "red@infect.me"
- name: Update version in README
uses: ponylang/release-bot-action@0.6.1
with:
entrypoint: update-version-in-README
env:
GIT_USER_NAME: "redvers"
GIT_USER_EMAIL: "red@infect.me"
- name: Update corral.json
uses: ponylang/release-bot-action@0.6.1
with:
entrypoint: update-version-in-corral-json
env:
GIT_USER_NAME: "redvers"
GIT_USER_EMAIL: "red@infect.me"
# 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/checkout@v2
with:
ref: "main"
token: ${{ secrets.RELEASE_TOKEN }}
- name: Trigger artefact creation
uses: ponylang/release-bot-action@0.6.1
with:
entrypoint: trigger-artefact-creation
env:
GIT_USER_NAME: "redvers"
GIT_USER_EMAIL: "red@infect.me"
# 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/checkout@v2
with:
ref: "main"
token: ${{ secrets.RELEASE_TOKEN }}
- name: Add "unreleased" section to CHANGELOG.md
uses: ponylang/release-bot-action@0.6.1
with:
entrypoint: add-unreleased-section-to-changelog
env:
GIT_USER_NAME: "redvers"
GIT_USER_EMAIL: "red@infect.me"