Skip to content

test build 1.6.54

test build 1.6.54 #3

Workflow file for this run

name: Build WindUI
on:
push:
branches:
- main
- test-build
workflow_dispatch:
permissions:
contents: write
jobs:
build:
if: "!contains(github.event.head_commit.message, 'Build: auto-update')"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
persist-credentials: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Setup Rust (for Cargo)
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Cache Cargo
uses: actions/cache@v4
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Setup Lua
run: sudo apt-get update && sudo apt-get install -y lua5.4
- name: Install Darklua (via Cargo)
run: cargo install darklua || true
- name: Install npm dependencies
run: npm i
- name: Build project
run: npm run build
- name: Commit build output
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add dist/main.lua
if git diff --cached --quiet; then
echo "No changes to commit"
exit 0
fi
git commit -m "Build: auto-update dist/main.lua"
git push origin HEAD:main