.github/workflows/npm.yml #464
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
on: | |
push: | |
branches: ['master'] | |
jobs: | |
build: | |
name: Make Website | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Build docs | |
working-directory: ./docusaurus | |
run: npm install; npm run mybuild | |
- name: Commit and push changes | |
run: | | |
git config --global user.name "mlibre" | |
git config --global user.email "m.gh@linuxmail.org" | |
git config --global core.autocrlf input | |
git config --global core.fileMode false | |
git config core.autocrlf input | |
git config core.fileMode false | |
git add . | |
git commit -m "Build docs" | |
git push |