Skip to content

PublishReleaseAndModule #3

PublishReleaseAndModule

PublishReleaseAndModule #3

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: PublishReleaseAndModule
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get changelog
id: get-changelog
uses: release-flow/keep-a-changelog-action@v2
with:
command: query
version: unreleased
- uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.ref_name }}
draft: true
body: ${{ steps.get-changelog.outputs.release-notes }}
- name: Update changelog
uses: thomaseizinger/keep-a-changelog-new-release@v1
with:
tag: ${{ github.ref }}
- name: Push changelog
run: |
git add CHANGELOG.md
git commit -m "docs: Update changelog for ${{ github.ref_name }}"
git push