Compare commits

..

5 commits

Author SHA1 Message Date
08002cfb08
wip
All checks were successful
Release / build (push) Successful in 1s
2025-02-15 16:26:05 +01:00
9dccba2581
wip 2025-02-15 16:08:43 +01:00
561551fd5f
Distinguish the (currently bogus) GitHub release workflows by name 2025-02-15 15:46:32 +01:00
5e269c6e87
Add a custom name for the release workflow 2025-02-15 15:46:07 +01:00
45f1f67707
Set the release title to today’s date as formatted string 2025-02-15 15:45:49 +01:00

View file

@ -3,7 +3,8 @@ name: Release
on:
workflow_dispatch:
push:
tags: '2*'
tags:
- 'v*'
permissions:
contents: write
@ -15,13 +16,17 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
LC_TIME: en_US.UTF-8
TODAY: $(date +'%d %b %Y')
steps:
- uses: actions/checkout@v4
# - uses: actions/checkout@v4
- name: Build with Gradle
run: ./gradlew assembleDist
# - name: Build with Gradle
# run: ./gradlew assembleDist
- name: Create bogus release
run: |
mkdir -p build/distributions
touch build/distributions/hogus-bogus.zip
- name: Create release
uses: actions/forgejo-release@v2
@ -29,23 +34,23 @@ jobs:
direction: upload
url: https://code.host.antville.org
token: ${{ github.token }}
title: ${{ env.TODAY }}
title: $(date +'%d %b %Y')
#tag: $(date +'%Y.%m.%d')
release-dir: build/distributions
release-notes-assistant: true
verbose: true
- name: Create release at GitHub
# FIXME: Currently only outputs gh command; adapt for Forgejo
run: |
echo gh release create "$GITHUB_REF_NAME" \
--repo "$GITHUB_REPOSITORY" \
--title "$(date +'%d %b %Y')" \
--generate-notes
# - name: Create release at GitHub
# # FIXME: Currently only outputs gh command; adapt for Forgejo
# run: |
# echo gh release create "$GITHUB_REF_NAME" \
# --repo "$GITHUB_REPOSITORY" \
# --title "$(date +'%d %b %Y')" \
# --generate-notes
- name: Upload release assets to GitHub
# FIXME: Currently only outputs gh command; adapt for Forgejo
run: |
echo gh release upload "$GITHUB_REF_NAME" \
build/distributions/helma-*.* \
--clobber
# - name: Upload release assets to GitHub
# # FIXME: Currently only outputs gh command; adapt for Forgejo
# run: |
# echo gh release upload "$GITHUB_REF_NAME" \
# build/distributions/helma-*.* \
# --clobber