From 723ba2c8ca1cc3c932f0d968594f26f8409b135b Mon Sep 17 00:00:00 2001 From: leafus Date: Sun, 29 Sep 2024 04:01:05 +0200 Subject: [PATCH] Update .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index e6a0c11..440b89b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -35,7 +35,6 @@ jobs: latest_version=$(git describe --tags --abbrev=0 || echo "v0.0.0") new_version=$(echo $latest_version | awk -F. '{printf "v%d.%d.%d", $1, $2, $3+1}') - # Sprawdzenie, czy nowy tag już istnieje if git rev-parse "$new_version" >/dev/null 2>&1; then echo "Tag $new_version already exists. Exiting." exit 1 @@ -72,3 +71,6 @@ jobs: asset_path: ./s3-client asset_name: s3-client_${{ env.new_version }}_linux_amd64 asset_content_type: application/octet-stream + env: + GITEA_TOKEN: ${{ secrets.TOKEN }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} \ No newline at end of file