Skip to content

Commit

Permalink
update gha to push to pypi and add absolute path in docs conf
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Dec 16, 2023
1 parent a0acbb4 commit fdc07b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,17 @@ jobs:
- name: Publish package distributions to PyPI
id: pypi-publish

if: steps.release.outputs.released == 'true'
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# - name: Publish package distributions to GitHub Releases
# uses: python-semantic-release/upload-to-gh-release@main
# if: steps.release.outputs.released == 'true'
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# - name: Publish to TestPyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
Expand Down
3 changes: 0 additions & 3 deletions docs/Tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
}
],
"source": [
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
"from nbiatoolkit import NBIAClient\n",
"from pprint import pprint\n",
"\n",
Expand Down
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

import os
import sys

sys.path.insert(0, os.path.abspath("../src"))
# -- Project information -----------------------------------------------------

project = u"nbiatoolkit"
Expand Down

0 comments on commit fdc07b4

Please sign in to comment.