Skip to content

Commit

Permalink
Adds documentation publishing to package release
Browse files Browse the repository at this point in the history
  • Loading branch information
erikhuck committed Apr 18, 2024
1 parent b62943a commit 0983d31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Publish Documentation

on:
workflow_call:
secrets:
GITHUB_TOKEN:
required: true

jobs:
publish-documentation:
Expand All @@ -10,10 +13,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-tags: true
- name: Set up Python 3.11
uses: actions/setup-python@v5
- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.x'
- name: Upgrade pip, install package, install requirements, build docs
run: |
pip install --upgrade pip
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/package_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
install_command: "python3 -m pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple gpu-tracker==${{ needs.release-version.outputs.version }}"
publish-documentation:
needs: test-test-pypi
uses: ./.github/workflows/documentation.yml
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Publish package to PyPi
# uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 0983d31

Please sign in to comment.