Wplace-BlueMarble/.github/workflows/build.yml
2025-07-23 19:23:42 -04:00

33 lines
No EOL
756 B
YAML

name: Build and Deploy Userscript
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Build userscript
run: npm run build
- name: Commit and push built script
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add dist/*.user.js
git commit -m "ci: build and deploy userscript [skip ci]" || echo "No changes to commit"
git push