Skip to content

Release

Release #7

Workflow file for this run

name: Release
on:
release:
types:
- created
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Download artifacts
id: download-artifact
uses: dawidd6/action-download-artifact@v7
with:
workflow: build.yml
commit: ${{ github.sha }}
# branch: main
event: release
skip_unpack: true
- uses: actions/checkout@v4
- name: Parse changelog
uses: actions-ecosystem/action-regex-match@v2
id: regex-match
with:
text: CHANGELOG.md
regex: |
'## \['
${{ github.event.release.tag_name }}
'\].*\n\n((.|\n)*)(?:## \[[0-9]+.[0-9]+.[0-9]+\])'
flags: gm
- name: Set release body
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.regex-match.outputs.group1 }}
- name: Upload release artifacts
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: |
linux.zip
macos.zip
windows.zip