Skip to content

Deploy Site

Deploy Site #65

Workflow file for this run

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 install
- name: Bootstrap β€πŸŒˆ
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 }}