Skip to content

Release Prepare

Release Prepare #32

name: Release Prepare
on:
workflow_dispatch:
inputs:
tag:
type: string
required: true
description: "Tag for the next release. Ex.: v5.0.0"
env:
NEXT_RELEASE_TAG: ${{ github.event.inputs.tag }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
release-script-test:
uses: ./.github/workflows/release-script-tests.yml
prepare-release-and-pull-request:
permissions:
contents: write
pull-requests: write
needs: release-script-test
runs-on: ubuntu-latest
if: ${{ needs.release-script-test.result == 'success' }}
env:
CXX: clang++-14
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.6.0
- name: Install dependencies
run: pip3 install -r ./tools/release/requirements.txt
- name: Update source code versions
run: ./tools/release/update_versions.py
- name: Ada Build
run: cmake -B build && cmake --build build
- name: Ada Test
run: ctest --output-on-failure --test-dir build
- name: Create PR with code updates for new release
uses: peter-evans/create-pull-request@f3a21bf3404eae73a97f65817ab35f351a1a63fe #v5.0.0
with:
commit-message: "chore: release ${{ env.NEXT_RELEASE_TAG }}"
branch: "release/${{ env.NEXT_RELEASE_TAG }}"
title: "chore: release ${{ env.NEXT_RELEASE_TAG }}"
token: ${{ env.GITHUB_TOKEN }}
body: |
This pull PR updates the source code version to ${{ env.NEXT_RELEASE_TAG }}
delete-branch: true
reviewers: "lemire,anonrig"