diff --git a/.github/workflows/docs-github-pages.yaml b/.github/workflows/docs-github-pages.yaml new file mode 100644 index 00000000..5139b2a7 --- /dev/null +++ b/.github/workflows/docs-github-pages.yaml @@ -0,0 +1,41 @@ +name: Publish docs + +on: + push: + branches: + - main + +permissions: + contents: read + pages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: setup actions + uses: actions/checkout@v3 + - name: install malta + working-directory: docs + run: | + curl -o malta.tgz -L https://github.com/pilcrowonpaper/malta/releases/latest/download/linux-amd64.tgz + tar -xvzf malta.tgz + - name: build + working-directory: docs + run: ./linux-amd64/malta + - name: upload pages artifact + uses: actions/upload-pages-artifact@v1 + with: + path: docs/dist + + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 \ No newline at end of file