Skip to content

Build and Deploy

Build and Deploy #2704

name: Build and Deploy
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
schedule:
- cron: "15 2,12 * * *"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/[email protected]
with:
persist-credentials: false
- name: Install and Build πŸ”§
run: |
npm install
npm run build
touch out/.nojekyll
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Deploy πŸš€
if: startsWith(github.ref, 'refs/heads/master')
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: out
CLEAN: true