Skip to content

Commit

Permalink
Add publishing step
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Mar 15, 2022
1 parent c46e1b6 commit 5854b88
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,23 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/book/_build/html # The folder the action should deploy.
publish:
needs: build
name: Publish to PyPI
if: github.repository == 'PSLmodels/OG-Core'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Build package
run: make pip-package
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI }}
skip_existing: true

0 comments on commit 5854b88

Please sign in to comment.