-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1.1 KB
/
deploy-site.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
name: Deploy Site
on:
push:
branches: [master]
paths:
- 'packages/fnx-ui/public/**'
- 'packages/fnx-ui/site/**'
- 'packages/fnx-ui/src/**'
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Git Identity 🔑
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies 🌈
run: npm run bootstrap
- name: Build Site 🔨
run: npm run build:site
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: packages/fnx-ui/dist-site
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}