-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.05 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Deploy
on:
push:
branches: [ nx-app ]
schedule:
- cron: "0 8-22/2 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install
run: npm install
- name: Run translate service
run: |
npm run libretranslate
docker ps
- name: Build
run: |
export SERVER_URL=127.0.0.1
npm run build
- name: Stop translate service
run: npm run libretranslate-stop
- name: Adjustment
run: |
cp .nojekyll ./out/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: master
folder: out