-
Notifications
You must be signed in to change notification settings - Fork 62
77 lines (64 loc) · 1.98 KB
/
dispatch.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
67
68
69
70
71
72
73
74
75
76
77
name: Production Build and Deploy
on:
push:
branches: [ gh-pages ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v2
# https://github.com/actions/checkout#push-a-commit-using-the-built-in-token
- name: Set GitHub Actions as Commit Author
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
- name: Checkout Repo
uses: actions/checkout@v2
with:
path: 'build'
- name: Build
run: |
cd build
git checkout gh-pages
git pull https://github.com/firebolt-db/firebolt-db.github.io.git gh-pages
git push origin
- name: Checkout Staging Target
uses: actions/checkout@v2
with:
repository: firebolt-analytics/firebolt-docs-staging
token: ${{ secrets.REPO_ACCESS_TOKEN }}
path: 'deploy'
- name: Push files to target
run: |
cp -r build/* deploy
cd deploy
git add -A
git commit -m $GITHUB_SHA
git push
- name: Checkout Guru Synch Target
uses: actions/checkout@v2
with:
repository: firebolt-analytics/firebolt-doc-to-guru
token: ${{ secrets.REPO_ACCESS_TOKEN }}
path: 'deploysync'
- name: Push files to target
run: |
cp -r build/* deploysync
cd deploysync
git add -A
git commit -m $GITHUB_SHA
git push
- name: Checkout Preview Target
uses: actions/checkout@v2
with:
repository: firebolt-analytics/firebolt-docs-preview-cntrbtr
token: ${{ secrets.REPO_ACCESS_TOKEN }}
path: 'preview'
- name: Push files to target
run: |
cp -r build/* preview
cd preview
git add -A
git commit -m $GITHUB_SHA
git push