From 6eba6b4cc8ccbe6486de1dbb025d702fdcef77ed Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Tue, 20 Dec 2022 20:41:31 +0100 Subject: [PATCH] Create deploy-docs.yml --- .github/workflows/deploy-docs.yml | 49 +++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/deploy-docs.yml diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 0000000..aabb15a --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,49 @@ +name: Publish Docs + +on: + push: + branches: [ "main" ] + + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + + - name: Setup Pages + uses: actions/configure-pages@v2 + +# - name: Restore Cache +# uses: actions/cache@v3 +# with: +# path: | +# dist + - name: Install Dependencies + working-directory: ./docs + run: npm install + + - name: Build Static HTML Site + working-directory: ./docs + run: npm run build + + - name: Upload to Pages + uses: actions/upload-pages-artifact@v1 + with: + path: ./docs/src/.vuepress/dist + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1