Skip to content

workflows: add publish_release action #2

workflows: add publish_release action

workflows: add publish_release action #2

Workflow file for this run

name: Publish Release
on:
push:
tags:
- "*"
jobs:
generate-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Generate changelog
id: changelog
uses: metcalfc/[email protected]
with:
mytoken: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
release_name: ${{ env.RELEASE_VERSION }}
body: ${{ steps.changelog.outputs.changelog }}
overwrite: true