Skip to content

Commit 9c74004

Browse files
Try simple branch refresh
1 parent 688841d commit 9c74004

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
name: Build and Deploy
2-
on: [push]
3-
permissions:
4-
contents: write
5-
1+
name: Refresh gh-pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
68
jobs:
7-
build-and-deploy:
8-
concurrency: ci-${{ github.ref }}
9+
build-and-test:
910
runs-on: ubuntu-latest
11+
1012
steps:
11-
- name: Checkout 🛎️
13+
- name: Checkout code
1214
uses: actions/checkout@v4
1315

14-
- name: Deploy 🚀
15-
uses: JamesIves/github-pages-deploy-action@v4
16-
with:
17-
folder: .
16+
- name: Reset gh-pages to latest main
17+
run: |
18+
git checkout gh-pages
19+
git reset --hard origin/main
20+
git push origin gh-pages --force

0 commit comments

Comments
 (0)