Merge pull request #2 from mjorgegulab/dependabot/npm_and_yarn/wiki/h… #20
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 Wiki | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./wiki | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'yarn' | |
cache-dependency-path: wiki/yarn.lock | |
- name: Install Netlify CLI | |
run: yarn global add netlify-cli | |
- name: Install deps | |
run: yarn install | |
- name: Build docusaurus | |
run: yarn build | |
- name: Deploy wiki | |
run: netlify deploy --dir=build --prod | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |