Trigger build #128
This file contains hidden or 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: Prepare gh-pages branch | |
| on: | |
| push: | |
| branches: | |
| - main | |
| repository_dispatch: | |
| types: [ external-console-deployment-trigger ] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20.11.1" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build and collect assets | |
| run: npm run build | |
| - name: Deploy to gh-pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./src | |
| force_orphan: true | |
| allow_empty_commit: true |