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