From 69e1b9a236554fe759aa07ca9e4a2abf039eed6b Mon Sep 17 00:00:00 2001 From: June Date: Tue, 11 Jun 2024 01:46:59 +0200 Subject: [PATCH] TEST --- .forgejo/workflows/release.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .forgejo/workflows/release.yaml diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml new file mode 100644 index 0000000..fac9be4 --- /dev/null +++ b/.forgejo/workflows/release.yaml @@ -0,0 +1,24 @@ +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 }}