chore: Add upload artifacts
All checks were successful
CI.yml / build (push) Successful in 1m45s

This commit is contained in:
d3m0k1d
2026-01-14 01:41:36 +03:00
parent 24fe951e49
commit 12c40a5748

View File

@@ -66,17 +66,8 @@ jobs:
GOARCH: ${{ matrix.arch }} GOARCH: ${{ matrix.arch }}
run: go build -o banforge-${{ matrix.goos }}-${{ matrix.arch }} ./cmd/banforge run: go build -o banforge-${{ matrix.goos }}-${{ matrix.arch }} ./cmd/banforge
- name: Upload to release - name: Upload ${{ matrix.goos }}-${{ matrix.arch }}
env: uses: actions@upload-artifact@v3
TOKEN: ${{ secrets.TOKEN }} with:
run: | name: banforge-${{ matrix.goos }}-${{ matrix.arch }}
TAG="${{ gitea.ref_name }}" path: banforge-${{ matrix.goos }}-${{ matrix.arch }}
REPO="${{ gitea.repository }}"
SERVER="${{ gitea.server_url }}"
curl -X POST \
-H "Authorization: token $TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary "@banforge-${{ matrix.goos }}-${{ matrix.arch }}" \
"$SERVER/api/v1/repos/$REPO/releases/tags/$TAG/assets?name=banforge-${{ matrix.goos }}-${{ matrix.arch }}"