refactor(build): remove plugin upload step and clean up environment variables

This commit is contained in:
Rayanzay 2025-05-31 15:12:18 +10:00
parent b5fd49a41b
commit d71c580a25

View file

@ -8,8 +8,7 @@ on:
env: env:
FORCE_COLOR: true FORCE_COLOR: true
GITHUB_TOKEN: ${{ secrets.ETOKEN }} GITHUB_TOKEN: ${{ secrets.ETOKEN }}
REPO: Equicord/Equibored GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
USERNAME: GitHub-Actions
permissions: write-all permissions: write-all
@ -70,16 +69,3 @@ jobs:
if: ${{ github.ref_name == 'main' }} if: ${{ github.ref_name == 'main' }}
run: | run: |
gh release upload latest --clobber dist/release/* gh release upload latest --clobber dist/release/*
- name: Upload Plugins JSON to Equibored 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 plugins
cd plugins
cp ../dist/release/*plugins.json .
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