-
Notifications
You must be signed in to change notification settings - Fork 6
66 lines (50 loc) · 1.67 KB
/
buildFront.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
62
63
64
65
66
name: Build front
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: gh-pages
- run: git checkout -b gh-pages-pr || true
- run: git push --set-upstream origin gh-pages-pr || true
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: gh-pages-pr
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "baikinkirill"
- run: git merge origin/gh-pages --allow-unrelated-histories -X gh-pages
- run: git add .
- run: git commit -m "Merge branch gh-pages into gh-pages-pr" 1> /dev/null 2> /dev/null || true
- run: git push
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: master
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: git submodule update --init --recursive -j 8
- run: npm ci
- run: npx jake token=${{ secrets.RTUITLAB_LANDING_TOKEN }}
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages-pr
folder: build
clean: true
- run: echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
- run: gh pr create --title "New landing build" --base gh-pages --head gh-pages-pr --body "" -a baikinkirill,ivlaptev || true