Abandon concept of release branches, switch to tags
This commit is contained in:
parent
9a985539c5
commit
27d8ab39f0
@ -46,12 +46,13 @@ pipeline:
|
||||
version_bump_test:
|
||||
image: offline-twitter/go
|
||||
when:
|
||||
branch: v*.*.*
|
||||
- event: tag
|
||||
ref: refs/tags/v*.*.*
|
||||
secrets:
|
||||
# - offline_twatter_passwd
|
||||
- offline_twatter_session_file
|
||||
commands:
|
||||
- export version=$(echo $CI_COMMIT_BRANCH | grep -Poh "(?<=^v)\d+\.\d+\.\d+")
|
||||
- export version=$(echo $CI_COMMIT_TAG | grep -Poh "(?<=^v)\d+\.\d+\.\d+")
|
||||
- curl https://apt.playfulpachyderm.com/KEY.gpg | sudo apt-key add -
|
||||
- echo "deb https://apt.playfulpachyderm.com/ ./" | sudo tee /etc/apt/sources.list.d/offline_twitter.list
|
||||
- sudo apt update
|
||||
@ -70,12 +71,13 @@ pipeline:
|
||||
|
||||
dpkg_build_and_upload:
|
||||
when:
|
||||
branch: v*.*.*
|
||||
- event: tag
|
||||
ref: refs/tags/v*.*.*
|
||||
image: offline-twitter/go
|
||||
secrets:
|
||||
- aptrepo_id_ecdsa
|
||||
commands:
|
||||
- export version=$(echo $CI_COMMIT_BRANCH | grep -Poh "(?<=^v)\d+\.\d+\.\d+")
|
||||
- export version=$(echo $CI_COMMIT_TAG | grep -Poh "(?<=^v)\d+\.\d+\.\d+")
|
||||
- cd build
|
||||
- ./build_dpkg.sh $version
|
||||
- eval $(ssh-agent)
|
||||
@ -86,20 +88,22 @@ pipeline:
|
||||
windows_build:
|
||||
image: offline-twitter/go-mingw
|
||||
when:
|
||||
branch: v*.*.*
|
||||
- event: tag
|
||||
ref: refs/tags/v*.*.*
|
||||
commands:
|
||||
- cd cmd
|
||||
- export version=$(echo $CI_COMMIT_BRANCH | grep -Poh "(?<=^v)\d+\.\d+\.\d+")
|
||||
- export version=$(echo $CI_COMMIT_TAG | grep -Poh "(?<=^v)\d+\.\d+\.\d+")
|
||||
- ./windows-compile.sh $version
|
||||
|
||||
windows_package_and_upload:
|
||||
when:
|
||||
branch: v*.*.*
|
||||
- event: tag
|
||||
ref: refs/tags/v*.*.*
|
||||
image: offline-twitter/innosetup
|
||||
secrets:
|
||||
- offline_twatter_id_ecdsa
|
||||
commands:
|
||||
- export version=$(echo $CI_COMMIT_BRANCH | grep -Poh "(?<=^v)\d+\.\d+\.\d+")
|
||||
- export version=$(echo $CI_COMMIT_TAG | grep -Poh "(?<=^v)\d+\.\d+\.\d+")
|
||||
- iscc.sh /Dversion=$version /Dexe_path=`winepath -w cmd/twitter.exe` build/windows/setup.iss
|
||||
- eval $(ssh-agent)
|
||||
- echo "$OFFLINE_TWATTER_ID_ECDSA" | ssh-add -
|
||||
|
Loading…
x
Reference in New Issue
Block a user