You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: .github/workflows/actions.yaml
+54Lines changed: 54 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ on:
7
7
push:
8
8
branches:
9
9
- main
10
+
10
11
# Allow this job to clone the repo and create a page deployment
11
12
permissions:
12
13
contents: read
@@ -57,3 +58,56 @@ jobs:
57
58
- name: Deploy to GitHub Pages
58
59
id: deployment
59
60
uses: actions/deploy-pages@v4
61
+
62
+
name: Deploy to GitHub Pages
63
+
64
+
on:
65
+
# Trigger the workflow every time you push to the `main` branch
66
+
# Using a different branch name? Replace `main` with your branch’s name
67
+
push:
68
+
branches: [main]
69
+
# Allows you to run this workflow manually from the Actions tab on GitHub.
70
+
workflow_dispatch:
71
+
72
+
# Allow this job to clone the repo and create a page deployment
73
+
permissions:
74
+
contents: read
75
+
pages: write
76
+
id-token: write
77
+
78
+
jobs:
79
+
check:
80
+
runs-on: ubuntu-latest
81
+
steps:
82
+
- uses: actions/checkout@v4
83
+
- name: Use Node.js 22
84
+
uses: actions/setup-node@v4
85
+
with:
86
+
node-version: 22
87
+
cache: npm
88
+
- run: npm ci
89
+
- run: npm run check
90
+
91
+
build:
92
+
needs: check
93
+
runs-on: ubuntu-latest
94
+
steps:
95
+
- name: Checkout your repository using git
96
+
uses: actions/checkout@v4
97
+
- name: Install, build, and upload your site
98
+
uses: withastro/action@v3
99
+
# with:
100
+
# path: . # The root location of your Astro project inside the repository. (optional)
101
+
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
102
+
# 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)
0 commit comments