Skip to main content

GitHub changelogs using tags for your CircleCI workflow

Project description

GitHub tagged release

GitHub changelogs using tags for your CircleCI workflow.

Usage

pip install github_tagged_release
github_tagged_release

In python

from github_release import GitHubRelease
gr = GitHubRelease()
gr.create_release_from_tag()

Example CircleCI workflow:

version: 2
jobs:
  build:
    docker:
      - image: circleci/node:8
    steps:
      - checkout
      - npm install
      - npm test

   deploy_prod:
    docker:
      - image: circleci/node:8
    steps:
      - run:
          name: Verify tag on master branch
          command: |
            git branch --contains | grep -q '^[ |*] master$'
      - run:
          name: Deploy
          command: npm run deploy
      - run:
          name: Create GitHub release
          command: |
            pip install --user github-tagged-release
            python ~/.local/bin/github_tagged_release
workflows:
  version: 2
  build_test_hold_deploy:
    jobs:
      - build:
          filters:
            tags:
              only: /.*/
      - deploy_prod:
          requires:
            - build
          filters:
            tags:
              only: /^v[0-9]+(\.[0-9]+)*$/
            branches:
              ignore: /.*/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github_tagged_release-0.1.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

github_tagged_release-0.1.0-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page