Skip to content

Commit

Permalink
Create dev-deploy.yml (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes authored Apr 2, 2021
1 parent dfd78af commit 1b79f0c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test Package Build and Deploy

on:
push:
branches:
- main

jobs:
deploy-package:

runs-on: ubuntu-latest
if: "startsWith(github.event.head_commit.message, '[DEPLOY]')"

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 twine
- name: Build and publish to test index
env:
TWINE_USERNAME: ${{ secrets.DEV_PACKAGE_ID }}
TWINE_PASSWORD: ${{ secrets.DEV_PACKAGE_SECRET }}
run: |
python setup.py sdist bdist_wheel
twine upload --repository testpypi dist/*

0 comments on commit 1b79f0c

Please sign in to comment.