Skip to content

Commit bbafde7

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents c18bc0a + 96c3599 commit bbafde7

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy Pages to zephyrus-development.github.io
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'pages/**'
9+
workflow_dispatch:
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
17+
steps:
18+
- name: Checkout zephyrus-cli repository
19+
uses: actions/checkout@v4
20+
with:
21+
path: zephyrus-source
22+
23+
- name: Checkout target repository
24+
uses: actions/checkout@v4
25+
with:
26+
repository: zephyrus-development/zephyrus-development.github.io
27+
token: ${{ secrets.SCOOP_UPDATE_TOKEN }}
28+
path: pages-target
29+
30+
- name: Copy pages directory contents
31+
run: |
32+
cp -r zephyrus-source/pages/* pages-target/
33+
cp -r zephyrus-source/pages/. pages-target/
34+
35+
- name: Commit and push changes
36+
working-directory: pages-target
37+
run: |
38+
git config --local user.email "action@github.com"
39+
git config --local user.name "GitHub Action"
40+
git add .
41+
if git diff --quiet --cached; then
42+
echo "No changes to commit"
43+
else
44+
git commit -m "Update pages from zephyrus-cli [skip ci]"
45+
git push
46+
fi

0 commit comments

Comments
 (0)