From 05650ee5767b047fb7c0d016d525f49a321ba976 Mon Sep 17 00:00:00 2001 From: "s.galanskiy" Date: Wed, 2 Jul 2025 15:14:45 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20.woodpecker/.woodpecker.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .woodpecker/.woodpecker.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.woodpecker/.woodpecker.yml b/.woodpecker/.woodpecker.yml index eef470e..3a22f1a 100644 --- a/.woodpecker/.woodpecker.yml +++ b/.woodpecker/.woodpecker.yml @@ -99,25 +99,21 @@ steps: - git config user.email "s.galanskiy@gossys.dev" - git fetch --all --prune - git branch -r - - git checkout develop - - git pull origin develop + - git checkout -b "release/$VERSION" - git commit -am "Релиз $VERSION" - git tag -f "v$VERSION" - - git push "https://s.galanskiy:b4785198d18200dfed812dc4299575f736255bd7@dev.gossys.dev/s.galanskiy/gonets.git" develop + - git push "https://s.galanskiy:b4785198d18200dfed812dc4299575f736255bd7@dev.gossys.dev/s.galanskiy/gonets.git" "release/$VERSION" - git push -f https://s.galanskiy:b4785198d18200dfed812dc4299575f736255bd7@dev.gossys.dev/s.galanskiy/gonets.git "v$VERSION" release-upload: image: curlimages/curl:latest - environment: - GONETS: - from_secret: GONETS commands: - VERSION=$(dpkg-parsechangelog -l./debian/changelog --show-field Version) - TAG="v$VERSION" - DEB_PATH="../gonets_${VERSION}_amd64.deb" - | curl -s -X POST "https://dev.gossys.dev/api/v1/repos/s.galanskiy/gonets/releases" \ - -H "Authorization: token ${FORGEJO_TOKEN}" \ + -H "Authorization: token b4785198d18200dfed812dc4299575f736255bd7" \ -H "Content-Type: application/json" \ -d '{ "tag_name": "'$TAG'", @@ -128,6 +124,6 @@ steps: }' || true - | curl -s -X POST \ - -H "Authorization: token ${GONETS}" \ + -H "Authorization: token b4785198d18200dfed812dc4299575f736255bd7" \ -F "attachment=@$DEB_PATH" \ "https://dev.gossys.dev/api/v1/repos/s.galanskiy/gonets/releases/$TAG/assets"