mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-07 21:53:04 -04:00
refactor(build): remove plugin upload step and clean up environment variables
This commit is contained in:
parent
b5fd49a41b
commit
d71c580a25
1 changed files with 1 additions and 15 deletions
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
|
@ -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
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue