wfxr.forgit/.github/workflows/release.yaml
carlfriedrich eedf3ae890 Meta: Add GitHub release action
The action is executed on every tag and creates a GitHub release. The
release contains a .tar.gz asset and a changelog consisting of all
commit messages since the previous tag. Commits with a commit message
starting with "Meta" are excluded from the changelog.
2022-11-23 17:42:42 +01:00

30 lines
590 B
YAML

name: Release
on:
push:
tags:
- '**'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Create Package
run: tar -czf forgit-${{github.ref_name}}.tar.gz --exclude LICENSE --exclude README.md *
- name: Generate Changelog
run: .github/scripts/changelog.sh > CHANGELOG.md
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: CHANGELOG.md
files: forgit-${{github.ref_name}}.tar.gz