From 17c39423d1835d68af138a1b5cc95b28a413788d Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 9 Apr 2026 17:51:48 -0400 Subject: [PATCH] build and upload dev branch --- .github/workflows/build.yml | 2 +- .github/workflows/buildDev.yml | 67 ++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/buildDev.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b81e980a9..0d7d4d27b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,7 +53,7 @@ jobs: cp browser/browser.* release cp Equicord.user.{js,js.LEGAL.txt} release - # copy the plugin data jsons, the extension zips and the desktop/vesktop asars + # copy the plugin data jsons, the extension zips and the desktop/equibop asars cp *.{json,zip,asar} release # legacy un-asared files diff --git a/.github/workflows/buildDev.yml b/.github/workflows/buildDev.yml new file mode 100644 index 000000000..8170c83d6 --- /dev/null +++ b/.github/workflows/buildDev.yml @@ -0,0 +1,67 @@ +name: Build Dev +on: + push: + branches: + - dev + +env: + FORCE_COLOR: true + GITHUB_TOKEN: ${{ secrets.ETOKEN }} + REPO: Equicord/Equibuilds + USERNAME: GitHub-Actions + +permissions: + contents: write + +jobs: + Build: + name: Build Equicord + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v3 + + - name: Use Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Build web + run: pnpm buildWebStandalone + + - name: Build + run: pnpm buildStandalone + + - name: Generate plugin lists + run: | + pnpm generatePluginJson dist/plugins.json + pnpm generateEquicordPluginJson dist/equicordplugins.json + pnpm generateVencordPluginJson dist/vencordplugins.json + pnpm generateDevsList dist/devs.json + + - name: Upload to Equibuilds repo + run: | + git config --global user.name "GitHub-Actions" + git config --global user.email actions@github.com + git clone https://$USERNAME:$GITHUB_TOKEN@github.com/$REPO.git equibuilds + cd equibuilds + + cp -r ../dist/* . + find . -size 0 -delete + + mkdir -p userscript + mv Equicord.user.* userscript/ + mv desktop.asar desktop/ + mv equibop.asar equibop/ + mv extension-*.zip browser/ + + git add -A + + git commit -m "Plugins for https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA" + git push --force https://$USERNAME:$GITHUB_TOKEN@github.com/$REPO.git