Skip to content

Commit b474c3a

Browse files
committed
Configure CI
1 parent a777bee commit b474c3a

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ name: Build & Deploy
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [main]
66
pull_request:
7-
branches: [ master ]
8-
schedule:
9-
- cron: "0 0 * * *"
7+
branches: [main]
8+
schedule:
9+
- cron: '0 0 * * *'
1010
workflow_dispatch:
1111

12-
1312
permissions:
1413
contents: read
1514
pages: write
@@ -20,22 +19,22 @@ jobs:
2019
runs-on: ubuntu-latest
2120
steps:
2221
- uses: actions/checkout@v4
23-
- uses: actions/setup-node@v2-beta
22+
- uses: actions/setup-node@v4
2423
with:
25-
node-version: '12'
26-
- name: Hugo setup
27-
uses: peaceiris/[email protected]
24+
node-version: '22'
25+
- uses: pnpm/action-setup@v4
2826
with:
29-
hugo-version: 0.76.5
30-
extended: true
31-
- name: NPM install
32-
run: npm install
33-
- name: Build
34-
run: npm run build
27+
version: latest
28+
- name: Install dependencies
29+
run: pnpm install
30+
- name: Lint code
31+
run: pnpm run lint
32+
- name: Build with Astro
33+
run: pnpm run build
3534
- name: Upload artifact
3635
uses: actions/upload-pages-artifact@v3
3736
with:
38-
path: ./public
37+
path: ./dist
3938
deploy:
4039
environment:
4140
name: github-pages

0 commit comments

Comments
 (0)