diff --git a/.github/workflows/gh_pages.yml b/.github/workflows/gh_pages.yml new file mode 100644 index 0000000000..f4210c0d11 --- /dev/null +++ b/.github/workflows/gh_pages.yml @@ -0,0 +1,24 @@ +name: GitHub Pages + +on: + push: + branches: + - main # Set a branch name to trigger deployment + +jobs: + deploy: + runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - uses: actions/checkout@v3 + - name: NPM install + run: npm ci + - name: NPM Build + run: npm run build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.ref == 'refs/heads/main' }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public