Skip to content

Update build.yml

Update build.yml #6

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [ "main" ]
workflow_dispatch:
env:
GENERATE_SOURCEMAP: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.PUBLISH_TOKEN }}
- run : npm i
shell: bash
- run : npm ci
shell: bash
- run : npm run docs:build
shell: bash
- run : git config user.name github-actions
shell: bash
- run : git config user.email [email protected]
shell: bash
- run : git add --all
shell: bash
- run : git remote set-url origin https://x-access-token:${{ secrets.PUBLISH_TOKEN }}@github.com/${{ github.repository }}
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