Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

publish-built-version 842B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env bash
  2. set -e
  3. if [[ -n $TRAVIS_TAG && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then
  4. echo "About to publish $TRAVIS_TAG to ajv-dist..."
  5. git config user.email "$GIT_USER_EMAIL"
  6. git config user.name "$GIT_USER_NAME"
  7. git clone https://${GITHUB_TOKEN}@github.com/ajv-validator/ajv-dist.git ../ajv-dist
  8. rm -rf ../ajv-dist/dist
  9. mkdir ../ajv-dist/dist
  10. cp ./dist/ajv.* ../ajv-dist/dist
  11. cat bower.json | sed 's/"name": "ajv"/"name": "ajv-dist"/' > ../ajv-dist/bower.json
  12. cd ../ajv-dist
  13. if [[ `git status --porcelain` ]]; then
  14. echo "Changes detected. Updating master branch..."
  15. git add -A
  16. git commit -m "updated by travis build #$TRAVIS_BUILD_NUMBER"
  17. git push --quiet origin master > /dev/null 2>&1
  18. fi
  19. echo "Publishing tag..."
  20. git tag $TRAVIS_TAG
  21. git push --tags > /dev/null 2>&1
  22. echo "Done"
  23. fi