| name: Rebuild
|
| on:
|
| workflow_dispatch:
|
| push:
|
| branches:
|
| - develop
|
|
|
| jobs:
|
| rebuild:
|
| concurrency: ci-${{ github.ref }}
|
| 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: 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
|
|
|