Skip to content

Commit 69eecd0

Browse files
authored
Update build.yml
1 parent 54767d7 commit 69eecd0

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

β€Ž.github/workflows/build.ymlβ€Ž

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Deploy to GitHub Pages
1+
name: Build and Deploy to cf-page Branch
22

33
on:
44
push:
@@ -10,11 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write
13-
pages: write
1413
id-token: write
15-
environment:
16-
name: github-pages
17-
url: ${{ steps.deployment.outputs.page_url }}
1814

1915
steps:
2016
- name: Checkout code πŸ›ŽοΈ
@@ -38,14 +34,18 @@ jobs:
3834
- name: Build πŸ—οΈ
3935
run: npm run build
4036

41-
- name: Setup Pages πŸ“„
42-
uses: actions/configure-pages@v5
37+
- name: Zip build folder πŸ“¦
38+
run: zip -r build.zip ./build
4339

44-
- name: Upload artifact πŸ“€
45-
uses: actions/upload-pages-artifact@v3
40+
- name: Upload build artifact πŸ“€
41+
uses: actions/upload-artifact@v4
4642
with:
47-
path: ./build
43+
name: build-artifact
44+
path: ./build.zip
4845

49-
- name: Deploy to GitHub Pages πŸš€
50-
id: deployment
51-
uses: actions/deploy-pages@v4
46+
- name: Deploy to cf-page branch πŸš€
47+
uses: peaceiris/actions-gh-pages@v4
48+
with:
49+
github_token: ${{ secrets.GITHUB_TOKEN }}
50+
publish_dir: ./build
51+
publish_branch: cf-page

0 commit comments

Comments
Β (0)