Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit 586d795

Browse files
authored
Pages (#23)
* add branch * try custom token End my suffering * v4 * add permissions * wrong token * content write * idk i give up * try move shit * conc * mv * another deploy try * seperate build * ci doesnt work apparently * final fix
1 parent ae79b63 commit 586d795

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

.github/workflows/cd.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,32 @@ name: CD
22

33
on:
44
push:
5-
branches:
6-
- main
7-
pull_request:
5+
branches: ["main"]
6+
workflow_dispatch:
87

98
permissions:
10-
contents: write
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
1116

1217
jobs:
13-
deploy:
14-
runs-on: ubuntu-22.04
15-
concurrency:
16-
group: ${{ github.workflow }}-${{ github.ref }}
18+
build:
19+
runs-on: ubuntu-latest
1720

1821
steps:
19-
- uses: actions/checkout@v4
22+
- name: Checkout
23+
uses: actions/checkout@v4
2024

21-
- uses: actions/setup-node@v4
25+
- name: Use Node.js 20
26+
uses: actions/setup-node@v3
2227
with:
23-
node-version: "23.3"
24-
25-
- name: Install
28+
node-version: 20
29+
30+
- name: Install dependencies
2631
run: npm i
2732

2833
- name: Build
@@ -32,4 +37,4 @@ jobs:
3237
uses: JamesIves/github-pages-deploy-action@v4
3338
with:
3439
folder: dist
35-
branch: gh-pages
40+
branch: gh-pages

0 commit comments

Comments
 (0)