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 }}
run: go build -o banforge-${{ matrix.goos }}-${{ matrix.arch }} ./cmd/banforge
- name: Upload to release
env:
TOKEN: ${{ secrets.TOKEN }}
run: |
TAG="${{ gitea.ref_name }}"
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 }}"
- name: Upload ${{ matrix.goos }}-${{ matrix.arch }}
uses: actions@upload-artifact@v3
with:
name: banforge-${{ matrix.goos }}-${{ matrix.arch }}
path: banforge-${{ matrix.goos }}-${{ matrix.arch }}