chore: update docusaurus to point to v7 docs as latest (#1848) #184
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: Publish Latest Docs | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'website/**' | |
jobs: | |
publish-docs: | |
permissions: | |
contents: write | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
if: github.repository == 'ExpediaGroup/graphql-kotlin' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 17 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('website/package-lock.json') }} | |
restore-keys: ${{ runner.os }}-node- | |
- name: Build website | |
run: | | |
cd website | |
npm install | |
npm run build | |
- name: Deploy GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./website/build | |
user_name: eg-oss-ci | |
user_email: oss@expediagroup.com |