Skip to content

Commit 1b9cca2

Browse files
committed
250722
1 parent e6c0dc8 commit 1b9cca2

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
patreon: KirigayaAsuna
2+
custom: ["https://afdian.com/a/scale"]

.github/workflows/pages.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.DS_Store
22
Thumbs.db
3-
.github/
43
db.json
54
*.log
65
node_modules/

0 commit comments

Comments
 (0)