From 8c7ffdf5a7bc4a4d9073ff12cd848d46b2eaddca Mon Sep 17 00:00:00 2001 From: "direct-dev.ru" Date: Sun, 27 Jul 2025 13:12:24 +0600 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20workflow=20-=204=20=D0=B4=D0=BB=D1=8F=20=D1=81?= =?UTF-8?q?=D0=B1=D0=BE=D1=80=D0=BA=D0=B8=20=D0=B8=20=D1=80=D0=B5=D0=BB?= =?UTF-8?q?=D0=B8=D0=B7=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 3e6babc..980461e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,23 +6,30 @@ on: jobs: release: - runs-on: ubuntu-latest # Убраны квадратные скобки (для Gitea это важно) + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + repository: 'GiteaAdmin/hello_gitea' + path: 'hello_gitea' + token: ${{ secrets.GITEATOKEN }} + git-server-url: 'https://direct-dev.ru/gitea' - name: Build run: | + cd hello_gitea mkdir -p bin go build -o bin/hello-api-${{ github.ref_name }} main.go - ls -la bin/ # Добавлено для отладки + ls -la bin/ - name: Create Release - uses: softprops/action-gh-release@v1 # Используем специальный Action для Gitea + uses: softprops/action-gh-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITEATOKEN }} # Только один токен! + GITHUB_TOKEN: ${{ secrets.GITEATOKEN }} + GITHUB_API_URL: 'https://direct-dev.ru/gitea/api/v1' with: tag_name: ${{ github.ref_name }} name: "Release ${{ github.ref_name }}" body: "Automated release" files: | - bin/hello-api-${{ github.ref_name }} \ No newline at end of file + hello_gitea/bin/hello-api-${{ github.ref_name }} \ No newline at end of file