This commit is contained in:
@@ -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 }}"
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user