This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
Windows safe #847
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: [ ubuntu-latest ] | |
timeout-minutes: 15 | |
steps: | |
- name: Reset permissions | |
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
- name: Install yarn | |
run: npm install -g yarn | |
- name: Build | |
run: | | |
yarn | |
yarn build | |
- name: Build and Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: docs # The folder the action should deploy. | |
- name: Uninstall yarn | |
run: npm uninstall -g yarn |