File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed
Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 1+ patreon : KirigayaAsuna
2+ custom : ["https://afdian.com/a/scale"]
Original file line number Diff line number Diff line change 1+ name : Push to gal-site
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build-and-push :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ with :
14+ token : ${{ secrets.GITHUB_TOKEN }}
15+ submodules : recursive
16+ - name : Use Node.js 24.4.1
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : " 24.4.1"
20+ - name : Cache NPM dependencies
21+ uses : actions/cache@v4
22+ with :
23+ path : node_modules
24+ key : ${{ runner.OS }}-npm-cache
25+ restore-keys : |
26+ ${{ runner.OS }}-npm-cache
27+ - name : Install Dependencies
28+ run : npm install
29+ - name : Build
30+ run : npm run build
31+ - name : Push to gal-site
32+ run : |
33+ cd public
34+ git init
35+ git config user.name "GitHub Actions"
36+ git config user.email "actions@github.com"
37+ git add .
38+ git commit -m "Deploy public folder to gal-site"
39+ git push --force https://x-access-token:${{ secrets.GAL_SITE_TOKEN }}@github.com/AdingApkgg/gal-site.git main
Original file line number Diff line number Diff line change 11.DS_Store
22Thumbs.db
3- .github /
43db.json
54* .log
65node_modules /
You can’t perform that action at this time.
0 commit comments