aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorElliott Tallis <tallis.elliott@gmail.com>2022-12-21 19:58:07 +0000
committerGitHub <noreply@github.com>2022-12-21 20:58:07 +0100
commit73b7f11d7a6d271ea02afe5f4911320351147bac (patch)
tree241e405baf915ac6adf1ef8b5ff79840bc9750c1 /.github
parentd806be1346fb8218001eb86ffeaa14099248a3ab (diff)
downloadVencord-73b7f11d7a6d271ea02afe5f4911320351147bac.tar.gz
Vencord-73b7f11d7a6d271ea02afe5f4911320351147bac.tar.bz2
Vencord-73b7f11d7a6d271ea02afe5f4911320351147bac.zip
Also push builds to https://github.com/Vencord/builds (#344)
Co-authored-by: Ven <vendicated@riseup.net>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml21
1 files changed, 20 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8ef6503..1cdebd0 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -55,10 +55,29 @@ jobs:
run: |
echo "release_tag=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- - name: Upload Devbuild
+ - name: Upload Devbuild as release
run: |
gh release upload devbuild --clobber dist/*
gh release edit devbuild --title "DevBuild $RELEASE_TAG"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ env.release_tag }}
+
+ - name: Upload Devbuild to builds repo
+ run: |
+ git config --global user.name "$USERNAME"
+ git config --global user.email actions@github.com
+
+ gh repo clone "$GH_REPO" upload
+ cd upload
+ rm -rf * .*
+ cp -r ../dist/* .
+
+ git add -A
+ git commit -m "Builds for https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA"
+ git push --force https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git main
+ env:
+ API_TOKEN: ${{ secrets.BUILDS_TOKEN }}
+ GLOBIGNORE: .git:.gitignore:README.md:LICENSE
+ GH_REPO: Vencord/builds
+ USERNAME: GitHub-Actions