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/8] =?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/8] 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/8] 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" \ From 9dccba2581f3bc157bad46ebeac7b64dafda5ca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Sat, 15 Feb 2025 16:00:03 +0100 Subject: [PATCH 4/8] wip --- .github/workflows/release.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb5a9dd1..cac3233b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,6 @@ jobs: env: GH_TOKEN: ${{ github.token }} LC_TIME: en_US.UTF-8 - TODAY: $(date +'%d %b %Y') steps: - uses: actions/checkout@v4 @@ -30,7 +29,6 @@ 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 08002cfb08a7a82499adab4047d2ae2483058152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Sat, 15 Feb 2025 16:09:37 +0100 Subject: [PATCH 5/8] wip --- .github/workflows/release.yml | 39 +++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cac3233b..e0fa7ea9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,10 +18,15 @@ jobs: LC_TIME: en_US.UTF-8 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,21 +34,23 @@ jobs: direction: upload url: https://code.host.antville.org token: ${{ github.token }} + 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 From ff4b4b0f0794be5df0f7058a3f5b7063c83d7f5b 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 6/8] =?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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3716dddf..77e08fe3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,7 @@ name: Release on: workflow_dispatch: push: - tags: - - 'v*' + tags: '2*' permissions: contents: write @@ -16,6 +15,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 +28,8 @@ jobs: direction: upload url: https://code.host.antville.org token: ${{ github.token }} + title: ${{ env.TODAY }} + #tag: $(date +'%Y.%m.%d') release-dir: build/distributions release-notes-assistant: true verbose: true From 70337bda407ddad9a28fb384953428ff0fed4e73 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 7/8] 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 77e08fe3..bbb377cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,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 5bfcd0b6ea1f1147e79d385f44405a45707bac53 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 8/8] 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 bbb377cf..52994244 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" \