Update website.yml #23
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: Node.js CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
# - name: Use Node.js ${{ matrix.node-version }} | |
# uses: actions/setup-node@v1 | |
# with: | |
# node-version: ${{ matrix.node-version }} | |
- run: npm install | |
working-directory: website | |
- run: unset NODE_OPTIONS | |
working-directory: website | |
- run: npm run build --if-present | |
working-directory: website | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
TOKEN: ${{ github.token }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: website/dist # The folder the action should deploy. | |
CLEAN: true # Automatically remove deleted files from the deploy branch |