From 45f1f6770785863d9f607eb6a5e98731f44987fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Sat, 15 Feb 2025 15:45:49 +0100 Subject: [PATCH 1/3] =?UTF-8?q?Set=20the=20release=20title=20to=20today?= =?UTF-8?q?=E2=80=99s=20date=20as=20formatted=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3716dddf..b3aff887 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,7 @@ jobs: env: GH_TOKEN: ${{ github.token }} LC_TIME: en_US.UTF-8 + TODAY: $(date +'%d %b %Y') steps: - uses: actions/checkout@v4 @@ -28,6 +29,7 @@ jobs: direction: upload url: https://code.host.antville.org token: ${{ github.token }} + title: ${{ env.today }} release-dir: build/distributions release-notes-assistant: true verbose: true From 5e269c6e876544829d6a7a0622ddc2fbd4b77e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Sat, 15 Feb 2025 15:46:07 +0100 Subject: [PATCH 2/3] Add a custom name for the release workflow --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b3aff887..fc02563c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,8 @@ jobs: - name: Build with Gradle run: ./gradlew assembleDist - - uses: actions/forgejo-release@v2 + - name: Create release + uses: actions/forgejo-release@v2 with: direction: upload url: https://code.host.antville.org From 561551fd5f66ee5ed92a0c88735bf279db909fd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Sat, 15 Feb 2025 15:46:32 +0100 Subject: [PATCH 3/3] Distinguish the (currently bogus) GitHub release workflows by name --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc02563c..bb5a9dd1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: release-notes-assistant: true verbose: true - - name: Create release + - name: Create release at GitHub # FIXME: Currently only outputs gh command; adapt for Forgejo run: | echo gh release create "$GITHUB_REF_NAME" \ @@ -43,7 +43,7 @@ jobs: --title "$(date +'%d %b %Y')" \ --generate-notes - - name: Upload assets + - name: Upload release assets to GitHub # FIXME: Currently only outputs gh command; adapt for Forgejo run: | echo gh release upload "$GITHUB_REF_NAME" \