CI: generate release notes #199
Workflow file for this run
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: CI | |
permissions: {} | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/common-setup | |
- name: Check format | |
run: make lint_check | |
release: | |
# this job makes an official Github release | |
needs: [lint] | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
outputs: | |
version: ${{ steps.get_version.outputs.version }} | |
upload_url: ${{ steps.step_upload_url.outputs.upload_url }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get the version | |
id: get_version | |
run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT | |
# only create release if tag start by 'v*' | |
- name: Create a Release | |
id: create_release | |
uses: softprops/action-gh-release@v2.0.8 | |
with: | |
tag_name: ${{ steps.get_version.outputs.version }} | |
generate_release_notes: true | |
make_latest: true | |
if: startsWith(github.ref, 'refs/tags/v') | |
- id: step_upload_url | |
run: echo "upload_url=${{ steps.create_release.outputs.upload_url }}" >> $GITHUB_OUTPUT |