Merge pull request #174 from essif-lab/tev2-updates #385
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: framework | |
on: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
jobs: | |
checks: | |
if: github.event_name != 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- name: Test Build | |
run: | | |
yarn install --frozen-lockfile | |
STAGING=true yarn docusaurus parse | |
STAGING=true yarn docusaurus glossary | |
STAGING=true yarn build | |
mv build public | |
gh-release: | |
if: github.event_name != 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }} | |
- name: Release to GitHub Pages | |
env: | |
USE_SSH: true | |
GIT_USER: "MarIliadi" | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "MarIliadi" | |
yarn install --frozen-lockfile | |
STAGING=true yarn docusaurus parse | |
STAGING=true yarn docusaurus glossary | |
STAGING=true yarn build | |
mv build public | |
STAGING=true yarn deploy |