helma/.github/workflows/release.yml
Tobi Schäfer 1bb5a093da
All checks were successful
Release / build (push) Successful in 26s
Re-enable creating the release at Github after install of gh client
2025-02-15 19:49:13 +01:00

48 lines
1.1 KiB
YAML

name: Release
on:
workflow_dispatch:
push:
tags: '2*'
permissions:
contents: write
jobs:
build:
runs-on: antville
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
LC_TIME: en_US.UTF-8
TODAY: $(date +'%d %b %Y')
steps:
- uses: actions/checkout@v4
- name: Build with Gradle
run: ./gradlew assembleDist
- name: Create release
uses: actions/forgejo-release@v2
with:
direction: upload
url: https://code.host.antville.org
token: ${{ github.token }}
title: ${{ env.TODAY }}
release-dir: build/distributions
release-notes-assistant: true
verbose: true
- name: Create release at GitHub
run: |
gh release create "$GITHUB_REF_NAME" \
--repo "$GITHUB_REPOSITORY" \
--title "${{ env.TODAY }}" \
--generate-notes
- name: Upload release assets to GitHub
run: |
gh release upload "$GITHUB_REF_NAME" build/distributions/helma-*.* \
--repo "$GITHUB_REPOSITORY" \
--clobber