Merge pull request #5425 from Kilmented/master #100
This file contains 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: Autobuild TGUI | |
on: | |
push: | |
branches: | |
- 'master' | |
paths: | |
- 'tgui/**.js' | |
- 'tgui/**.scss' | |
jobs: | |
build: | |
name: Rebuild TGUI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 25 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '^18' | |
- name: Build TGUI | |
run: bin/tgui --build | |
working-directory: ./tgui | |
- name: Commit Artifacts | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "TGUI" | |
git pull origin master | |
git commit -m "Automatic TGUI Rebuild [ci skip]" -a || true | |
- name: Push Artifacts | |
uses: CasperWA/push-protected@v2 | |
with: | |
token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }} | |
branch: protected |