···11+# Sample workflow for building and deploying an Astro site to GitHub Pages
22+#
33+# To get started with Astro see: https://docs.astro.build/en/getting-started/
44+#
55+name: Deploy Astro site to Pages
66+77+on:
88+ # Runs on pushes targeting the default branch
99+ push:
1010+ branches: []
1111+1212+ # Allows you to run this workflow manually from the Actions tab
1313+ workflow_dispatch:
1414+1515+# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1616+permissions:
1717+ contents: read
1818+ pages: write
1919+ id-token: write
2020+2121+# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2222+# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2323+concurrency:
2424+ group: "pages"
2525+ cancel-in-progress: false
2626+2727+env:
2828+ BUILD_PATH: "." # default value when not using subfolders
2929+ # BUILD_PATH: subfolder
3030+3131+jobs:
3232+ build:
3333+ name: Build
3434+ runs-on: ubuntu-latest
3535+ steps:
3636+ - name: Checkout
3737+ uses: actions/checkout@v4
3838+3939+ # - name: Install pnpm
4040+ # uses: pnpm/action-setup@v4
4141+ # with:
4242+ # version: 10
4343+4444+ # - name: Install Node.js
4545+ # uses: actions/setup-node@v4
4646+ # with:
4747+ # node-version: 24
4848+ # cache: 'pnpm'
4949+5050+ # - run: pnpm install
5151+5252+ # - name: Build website
5353+ # run: pnpm run build-action
5454+5555+ - name: Install, build, and upload your site
5656+ uses: withastro/action@v5
5757+ with:
5858+ # path: . # The root location of your Astro project inside the repository. (optional)
5959+ node-version: 24 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
6060+ package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
6161+ out-dir: dist
6262+6363+ - name: Publish to Cloudflare Pages
6464+ uses: cloudflare/pages-action@1
6565+ with:
6666+ apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
6767+ accountId: 2912be6a535e3b3689c79b309484b433
6868+ projectName: aria-dot-coffee
6969+ directory: ./dist
7070+ gitHubToken: ${{ secrets.GITHUB_TOKEN }}
7171+