Skip to content

Commit

Permalink
add jobs to autobump tag and upload to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
samvarankashyap committed Apr 2, 2020
1 parent 1ef115c commit 630854a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/autobump.yml
@@ -1,4 +1,4 @@
name: "autobump on develop"
name: "Autobump tag on develop branch when version changes"

on: [push]

Expand Down Expand Up @@ -31,23 +31,3 @@ jobs:
Changes in this Release
draft: false
prerelease: false
deploy:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
# twine upload dist/*
10 changes: 6 additions & 4 deletions .github/workflows/create-release-on-tag.yml
@@ -1,9 +1,11 @@
name: "on creation of tags"
name: "Create release on change of version file"
on:
# Sequence of patterns matched against refs/tags
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
branches:
- develop
paths:
- 'linchpin/version.py'

jobs:
release:
Expand Down

0 comments on commit 630854a

Please sign in to comment.