-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 920 Bytes
/
Copy pathastro.yml
File metadata and controls
45 lines (39 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Deploy Astro site to Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
env:
NODE_VERSION: 20
PNPM_VERSION: "10.14.0"
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- name: Install, build, and upload site
uses: withastro/action@v3
with:
path: .
node-version: ${{ env.NODE_VERSION }} # local version is 24 *shrug*
package-manager: pnpm@${{ env.PNPM_VERSION }}
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4