Skip to content

Build

Build #117

Workflow file for this run

name: Build
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
env:
GH_TOKEN: ${{ github.token }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
REASON: ${{ github.event_name }}
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Use pnpm 10.4.1
uses: pnpm/action-setup@v4
with:
version: 10.4.1
- name: Clone build script
run: git clone --depth 1 --branch main https://github.com/VendroidEnhanced/plugin .
- name: Config author
run: |
git config --global user.email "personal@nin0.dev"
git config --global user.name "gh-actions"
- name: Update submodules
run: node _scripts/updateSubmodules.mjs
- name: Push changes
run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/VendroidEnhanced/plugin
git push origin main
- name: Run build script (Vencord)
run: node _scripts/index.mjs vencord
- name: Run build script (Equicord)
run: node _scripts/index.mjs equicord