Makefile 605 B

123456789101112131415161718
  1. tag-changelog: require-version require-gh-token
  2. echo "Tagging..." && \
  3. git tag -a "$$VERSION" -f --annotate -m"Tagged $$VERSION" && \
  4. git push --tags -f && \
  5. git checkout master && \
  6. git pull && \
  7. github_changelog_generator --no-issues --max-issues 100 --token "${GH_TOKEN}" --user getlantern --project systray && \
  8. git add CHANGELOG.md && \
  9. git commit -m "Updated changelog for $$VERSION" && \
  10. git push origin HEAD && \
  11. git checkout -
  12. guard-%:
  13. @ if [ -z '${${*}}' ]; then echo 'Environment variable $* not set' && exit 1; fi
  14. require-version: guard-VERSION
  15. require-gh-token: guard-GH_TOKEN