Skip to content

Commit 86d0510

Browse files
committed
🔧 FacePrintPay CI/CD add
1 parent 43a7735 commit 86d0510

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: FacePrintPay CI/CD
2+
on:
3+
push:
4+
branches: [main, master]
5+
workflow_dispatch:
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Setup Node
12+
if: hashFiles('package.json') != ''
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: '20'
16+
- name: Install dependencies
17+
if: hashFiles('package.json') != ''
18+
run: npm install --legacy-peer-deps || true
19+
- name: Build
20+
if: hashFiles('package.json') != ''
21+
run: npm run build --if-present || true
22+
- name: Setup Python
23+
if: hashFiles('requirements.txt') != ''
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.11'
27+
- name: Install Python deps
28+
if: hashFiles('requirements.txt') != ''
29+
run: pip install -r requirements.txt || true
30+
- name: Deploy to GitHub Pages
31+
uses: peaceiris/actions-gh-pages@v3
32+
if: success()
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./dist

0 commit comments

Comments
 (0)