Merge pull request #90 from OvertureMaps/dev #18
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 docusaurus on push to main and publish to gh-pages branch | |
on: | |
push: | |
branches: [main] | |
# Allow running from the actions tab | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
publish: | |
if: github.repository == 'overturemaps/schema' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the schema repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "19" | |
- name: Install NPM dependencies | |
run: cd docusaurus && npm install | |
- name: Build Docusaurus Pages 🔧 | |
run: cd docusaurus && npm run build | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: docusaurus/build |