Skip to content

Commit

Permalink
Merge pull request #118 from cfstacks/cd
Browse files Browse the repository at this point in the history
publish package to pypi
  • Loading branch information
alekna committed May 30, 2020
2 parents 8ff3047 + b4fdeb0 commit e81a479
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ name: CI
on: [push]

jobs:
build:

test:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Setup Python
Expand All @@ -24,3 +22,24 @@ jobs:
flake8 stacks --count --exit-zero --max-complexity=10
- name: Run Tox
run: tox -e py
publish:
needs: test
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build
run: python setup.py sdist bdist_wheel
- name: Publish
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
]

config = {
'name': 'stacks',
'description': 'Stacks',
'name': 'cfstacks',
'description': 'Manage CloudFormation sanely with templates written in YAML',
'url': about['__url__'],
'download_url': about['__url__'],
'version': about['__version__'],
Expand Down
4 changes: 2 additions & 2 deletions stacks/__about__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__version__ = '0.4.4'
__version__ = '0.4.6'
__licence__ = 'MIT'
__url__ = 'https://stacks.tools'
__url__ = 'https://cfstacks.github.io/'
__maintainer__ = 'Vaidas Jablonskis'
__maintainer_email__ = 'jablonskis@gmail.com'

0 comments on commit e81a479

Please sign in to comment.