diff options
-rw-r--r-- | .github/workflows/main.yml | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3fac578..fe7f351 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,23 @@ jobs: - uses: actions/setup-python@v3 - run: pip install pdoc - run: pdoc -o docs/ discord - - - +# everything below is copied from the pdoc repo + - run: tar --directory docs/ -hcf artifact.tar . + - uses: actions/upload-artifact@v3 + with: + name: github-pages + path: ./artifact.tar + + deploy: + needs: build + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v1 |