fix homepage #4
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 and Deploy | |
on: | |
push: | |
branches: ["master"] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
- uses: actions/checkout@v3 | |
- run: npm i | |
shell: bash | |
- run: npm ci | |
shell: bash | |
- run: npm run build | |
shell: bash | |
- run: git config user.name github-actions | |
shell: bash | |
- run: git config user.email [email protected] | |
shell: bash | |
- run: git --work-tree build add --all | |
shell: bash | |
- run: git commit -m "Automatic Build and Deploy run by GitHub Actions" | |
shell: bash | |
- run: git push origin HEAD:gh-pages --force | |
shell: bash |