Skip to content

Commit e7cc11f

Browse files
committed
ci: sync gh-pages with main on every push
Signed-off-by: danbugs <danilochiarlone@gmail.com>
1 parent ea5637c commit e7cc11f

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Sync gh-pages with main
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
concurrency:
8+
group: sync-gh-pages
9+
cancel-in-progress: true
10+
11+
jobs:
12+
sync:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
ref: gh-pages
20+
fetch-depth: 0
21+
22+
- name: Merge main into gh-pages
23+
run: |
24+
git config user.name "github-actions[bot]"
25+
git config user.email "github-actions[bot]@users.noreply.github.com"
26+
git merge origin/main -m "sync: merge main into gh-pages"
27+
git push origin gh-pages

0 commit comments

Comments
 (0)