From 1bb5a093dadf0c371aa0f227094cbc2a04bf044d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Sat, 15 Feb 2025 19:07:37 +0100 Subject: [PATCH] Re-enable creating the release at Github after install of gh client --- .github/workflows/release.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52994244..f7aa7874 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: runs-on: antville env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.GH_TOKEN }} LC_TIME: en_US.UTF-8 TODAY: $(date +'%d %b %Y') @@ -30,22 +30,19 @@ jobs: 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 - name: Create release at GitHub - # FIXME: Currently only outputs gh command; adapt for Forgejo run: | - echo gh release create "$GITHUB_REF_NAME" \ + gh release create "$GITHUB_REF_NAME" \ --repo "$GITHUB_REPOSITORY" \ - --title "$(date +'%d %b %Y')" \ + --title "${{ env.TODAY }}" \ --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-*.* \ + gh release upload "$GITHUB_REF_NAME" build/distributions/helma-*.* \ + --repo "$GITHUB_REPOSITORY" \ --clobber