Update live_tests.js #972
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: Rebuild | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - develop | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| pull-requests: write | |
| deployments: write | |
| concurrency: | |
| group: "pages" | |
| jobs: | |
| rebuild: | |
| concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 16 | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Rebuild | |
| run: | | |
| sudo apt install python2 | |
| npm install | |
| npm run translate | |
| - name: Upload built-dist | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: built-dist | |
| path: dist | |
| - name: Upload built-media | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: built-media | |
| path: media | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: './' | |
| - name: Deploy to GitHub Pages | |
| uses: actions/deploy-pages@v4 | |
| - name: Checkout to develop-builds | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: develop-builds | |
| - name: Clear out things | |
| run: | | |
| rm -rf dist/* | |
| rm -rf media/* | |
| - name: Download built-dist | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: built-dist | |
| path: dist/ | |
| - name: Download built-media | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: built-media | |
| path: media/ | |
| - name: Commit | |
| uses: EndBug/add-and-commit@v9.1.1 | |
| with: | |
| message: "Build" | |
| committer_name: GitHub Actions | |
| committer_email: actions@github.com | |
| - name: Repository Dispatch | |
| uses: peter-evans/repository-dispatch@v2.0.1 | |
| with: | |
| token: ${{ secrets.t }} | |
| event-type: update | |
| repository: PenguinMod/penguinmod.github.io |