-
Notifications
You must be signed in to change notification settings - Fork 80
61 lines (61 loc) · 1.76 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
51
52
53
54
55
56
57
58
59
60
61
name: Build and Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
- name: Yarn Install
run: yarn install
- name: Push translations
uses: transifex/cli-action@v1
with:
token: ${{ secrets.TX_TOKEN }}
args: push
- run: rm -rf /tmp/tx
- name: Pull translations
uses: transifex/cli-action@v1
with:
token: ${{ secrets.TX_TOKEN }}
args: pull
- name: Build
run: yarn build
- name: Wait on tests
uses: lewagon/[email protected]
with:
ref: master
check-name: test
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
- name: Clean ftp
uses: StephanThierry/[email protected]
with:
host: ${{ secrets.FTP_SERVER }}
user: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
workingDir: /www
remoteFiles: "precache-manifest.*.js;.ftp-deploy-sync-state.json"
remoteDirectories: "js;css"
- name: Deploy on ftp
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: dist/
server-dir: www/
exclude: CNAME
- name: Deploy on github-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist/
exclude_assets: "proxy.php"