Merge pull request #365 from trussworks/renovate/ua-parser-js-0.x #109
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: Deploy Docusaurus to GitHub Pages | |
on: | |
push: | |
branches: [ main ] | |
# enables manual runs | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 # $GITHUB_WORKSPACE | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.node-version' | |
- name: Install dependencies | |
run: npm install | |
- name: Build the Docusaurus app | |
run: npm run build | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # the branch for the deployment | |
folder: build # the folder getting deployed |