From 8b6dc8823397bc4d2da227b3f18c55cf37c8fad7 Mon Sep 17 00:00:00 2001 From: d3m0k1d Date: Wed, 14 Jan 2026 14:40:48 +0300 Subject: [PATCH] chore: fix cd --- .gitea/workflows/CD.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/CD.yml b/.gitea/workflows/CD.yml index f47f1f1..a0bb703 100644 --- a/.gitea/workflows/CD.yml +++ b/.gitea/workflows/CD.yml @@ -12,10 +12,8 @@ permissions: jobs: release: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v6 - - name: Create Release env: TOKEN: ${{ secrets.TOKEN }} @@ -23,7 +21,6 @@ jobs: TAG="${{ gitea.ref_name }}" REPO="${{ gitea.repository }}" SERVER="${{ gitea.server_url }}" - curl -X POST \ -H "Authorization: token $TOKEN" \ -H "Content-Type: application/json" \ @@ -45,25 +42,26 @@ jobs: arch: amd64 - goos: linux arch: arm64 - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v6 - - uses: actions/setup-go@v6 with: go-version: '1.25' cache: false - - run: go mod tidy - - run: go test ./... - - name: Build ${{ matrix.goos }}-${{ matrix.arch }} env: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.arch }} run: go build -o banforge-${{ matrix.goos }}-${{ matrix.arch }} ./cmd/banforge - - + - name: Upload ${{ matrix.goos }}-${{ matrix.arch }} + env: + TOKEN: ${{ secrets.TOKEN }} + run: | + TAG="${{ gitea.ref_name }}" + FILE="banforge-${{ matrix.goos }}-${{ matrix.arch }}" + curl --user d3m0k1d:$TOKEN \ + --upload-file $FILE \ + https://gitea.d3m0k1d.ru/api/packages/d3m0k1d/generic/banforge/$TAG/$FILE