From 389dbeff565ee3dd7655147f134f5ea98afe5c9e Mon Sep 17 00:00:00 2001 From: koru Date: Sat, 13 Jun 2026 15:12:38 +0000 Subject: [PATCH] chore: cleanup `release.yaml` --- .forgejo/workflows/release.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml index dcd1a26..13b778a 100644 --- a/.forgejo/workflows/release.yaml +++ b/.forgejo/workflows/release.yaml @@ -3,7 +3,7 @@ name: Build and Release on: push: tags: - - 'v*' + - "v*" jobs: build: @@ -15,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 'stable' + go-version: "stable" - name: Install dependencies run: | @@ -38,16 +38,17 @@ jobs: REPO="${{ github.repository }}" TOKEN="${{ secrets.GITHUB_TOKEN }}" ASSET="gogofetch-${TAG}-linux-amd64.tar.gz" - + RELEASE_ID=$(curl -X POST "${{ github.server_url }}/api/v1/repos/${REPO}/releases" \ -H "Authorization: token ${TOKEN}" \ -H "Content-Type: application/json" \ -d "{\"tag_name\":\"${TAG}\",\"target_commitish\":\"master\",\"name\":\"Release ${TAG}\",\"body\":\"Automated binary release for Arch Linux AUR\",\"draft\":false,\"prerelease\":false}" \ | jq '.id') - + echo "Created release with ID: ${RELEASE_ID}" - + curl -X POST "${{ github.server_url }}/api/v1/repos/${REPO}/releases/${RELEASE_ID}/assets" \ -H "Authorization: token ${TOKEN}" \ -H "Accept: application/json" \ - -F "attachment=@./${ASSET}" \ No newline at end of file + -F "attachment=@./${ASSET}" +