Tag commits deployed on Circle CI and store artefacts in build

This commit is contained in:
Roman Yurchak 2018-09-14 14:47:54 +02:00
parent c36a044a03
commit d574047a4d
2 changed files with 8 additions and 4 deletions

View File

@ -77,6 +77,9 @@ jobs:
- ./pyodide-env - ./pyodide-env
- ./firefox - ./firefox
- store_artifacts:
path: /home/circleci/repo/build/
test-firefox: test-firefox:
<<: *defaults <<: *defaults
steps: steps:
@ -111,9 +114,6 @@ jobs:
export PATH=$PWD/firefox:$PATH export PATH=$PWD/firefox:$PATH
pytest test -v -k chrome pytest test -v -k chrome
- store_artifacts:
path: /home/circleci/repo/build/
deploy: deploy:
machine: machine:
enabled: true enabled: true

View File

@ -7,7 +7,11 @@ git checkout --orphan tmp
git add * git add *
git config --global user.email "deploybot@nowhere.com" git config --global user.email "deploybot@nowhere.com"
git config --global user.name "Deploybot" git config --global user.name "Deploybot"
git commit -m "Deployed from Circle-CI $CIRCLE_BUILD_NUM" git commit -m << END
Deployed from Circle-CI $CIRCLE_BUILD_NUM"
Version $(git describe --tags --always)
END
git checkout master git checkout master
git reset --hard tmp git reset --hard tmp
git push origin -f master git push origin -f master