From 992fda8f85d093fff80cdbd7a4274c3964164ea2 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 1 Nov 2021 08:38:05 +0200 Subject: [PATCH] Add GitHub workflow to publish to Pages It seems we can only enable GitHub Pages with subdirectories at the root of the project. Ours is in ./site/docs so I think we need to use an example like Hexo's to publish with a GitHub workflow. See: https://hexo.io/docs/github-pages --- .github/workflows/pages.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 00000000..f4dbbcbc --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,18 @@ +name: Pages + +on: + push: + branches: + - main + +jobs: + pages: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./site/docs + publish_branch: main