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"