Release #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
inputs: | |
ReleaseHeader: | |
description: The header to be added to the release. | |
required: false | |
jobs: | |
Release: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: pwsh | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install GitVersion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: '5.x' | |
- name: Determine Version | |
id: gitversion | |
uses: gittools/actions/gitversion/[email protected] | |
- name: Update README Inputs/Outputs | |
uses: mdvorak/update-action-readme@v1 | |
- name: Update Changelog | |
id: changelog | |
uses: natescherer/changelog-management-action@v1 | |
with: | |
mode: release | |
releaseVersion: ${{ steps.gitversion.outputs.SemVer }} | |
- name: Push SemVer Tag | |
uses: rickstaa/action-create-tag@v1 | |
with: | |
tag: v${{ steps.gitversion.outputs.SemVer }} | |
- name: Push Major Tag | |
uses: rickstaa/action-create-tag@v1 | |
with: | |
tag: v${{ steps.gitversion.outputs.Major }} | |
force_push_tag: true | |
- name: Push Major.Minor Tag | |
uses: rickstaa/action-create-tag@v1 | |
with: | |
tag: v${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }} | |
force_push_tag: true | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
base: main | |
commit-message: Release v${{ steps.gitversion.outputs.SemVer }} | |
branch: release/v${{ steps.gitversion.outputs.SemVer }} | |
delete-branch: true | |
title: Release v${{ steps.gitversion.outputs.SemVer }} | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: v${{ steps.gitversion.outputs.SemVer }} | |
tag_name: v${{ steps.gitversion.outputs.SemVer }} | |
body: | | |
# Release v${{ steps.gitversion.outputs.SemVer }} | |
${{ github.event.inputs.ReleaseHeader}} | |
## Changes | |
${{ steps.changelog.outputs.releasenotes }} |