File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments