diff --git a/.github/workflows/pages-deployment.yaml b/.github/workflows/pages-deployment.yaml new file mode 100644 index 00000000..43ce51a0 --- /dev/null +++ b/.github/workflows/pages-deployment.yaml @@ -0,0 +1,22 @@ +on: [push] +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + name: Deploy to Cloudflare Pages + steps: + - name: Checkout + uses: actions/checkout@v3 + # Run your project's build step + - name: Build + run: npx quartz build + - name: Publish + uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: ACIT4330 # e.g. 'my-project' + directory: public # e.g. 'dist' + gitHubToken: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file