diff options
author | Noah <mounderfod@gmail.com> | 2022-07-08 17:39:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-08 17:39:29 +0100 |
commit | 19a5dc08451aabdc0c45eb23bd27947da5a79f4b (patch) | |
tree | 55bf29400e53bf0424355bc682d26ccd4480ab09 | |
parent | 301f5e7883cfe05577cf884cd869a302c6166d3e (diff) | |
download | discobra-19a5dc08451aabdc0c45eb23bd27947da5a79f4b.tar.gz |
fix(actions): Make GH pages work
-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 |