diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..b1d9f69 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,32 @@ +name: Devblog deployment +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Zola + uses: taiki-e/install-action@v2 + with: + tool: zola@0.18.0 + - name: Run Zola + run: zola --base-url ${{ steps.deployment.outputs.page_url }} build + - name: Setup Pages + uses: actions/configure-pages@v4 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: 'public/' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4