infra-rebuild/.forgejo/workflows/release.yaml

25 lines
690 B
YAML
Raw Normal View History

2024-06-11 01:46:59 +02:00
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Get release notes from tag
run: echo "RELEASE_NOTES=$(git tag -l --format='%(contents)' ${{ env.GITHUB_REF_NAME }})" >> "$GITHUB_ENV"
- name: Install Hatch
uses: https://github.com/pypa/hatch@install
- name: Build project
run: hatch build
- name: Create a Forgejo release
uses: actions/forgejo-release@v2
with:
direction: upload
url: https://git.hamburg.ccc.de
release-dir: dist
release-notes: ${{ env.RELEASE_NOTES }}
token: ${{ env.GITHUB_TOKEN }}