Skip to content

Commit

Permalink
Merge pull request #89 from svedel/dev/add_deploy_workflow_master
Browse files Browse the repository at this point in the history
all ready
  • Loading branch information
svedel authored Jul 15, 2021
2 parents 48acebe + 958ffb9 commit c790e99
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/prod.workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# deployment workflow to PyPI

name: Publish python package greattunes to PyPI

on:
push:
branches:
- master

jobs:
build-n-publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install build dependencies
run: |
pip install --upgrade setuptools wheel
pip install --upgrade -r requirements.txt
- name: Build package
run: python3 setup.py bdist_wheel
- name: Publish distribution of greattunes to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/cicd.yml → .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CI/CD pipeline
# Pipeline for testing, code format and style checks

name: CI CD workflow
name: Tests, code format and style checks

on:
push:
Expand Down

0 comments on commit c790e99

Please sign in to comment.