From 19a5dc08451aabdc0c45eb23bd27947da5a79f4b Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 8 Jul 2022 17:39:29 +0100 Subject: fix(actions): Make GH pages work --- .github/workflows/main.yml | 22 +++++++++++++++++++--- 1 file 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 -- cgit 1.4.1-2-gfad0