mirror of
https://github.com/SwingTheVine/Wplace-BlueMarble.git
synced 2026-03-11 17:15:38 +00:00
38 lines
No EOL
894 B
YAML
38 lines
No EOL
894 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: Update userscript version
|
|
run: |
|
|
npm version minor --no-git-tag-version
|
|
node update-version.js
|
|
|
|
- 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 |