aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorVen <vendicated@riseup.net>2023-01-26 22:38:02 +0100
committerGitHub <noreply@github.com>2023-01-26 22:38:02 +0100
commit399305fd8a51de8f0e14d1898d9dd904c540f062 (patch)
treed3b34626c19d7af6549040648e340f1a041d30a2 /.github/workflows/build.yml
parent0c030a3a27e4c34409143261975fb3bd0e481fcb (diff)
downloadVencord-399305fd8a51de8f0e14d1898d9dd904c540f062.tar.gz
Vencord-399305fd8a51de8f0e14d1898d9dd904c540f062.tar.bz2
Vencord-399305fd8a51de8f0e14d1898d9dd904c540f062.zip
Automatic extension publishing (#453)
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml20
1 files changed, 6 insertions, 14 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5c9eafe..1590c79 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -34,28 +34,19 @@ jobs:
- name: Build web
run: pnpm buildWeb --standalone
- - name: Sign firefox extension
- run: |
- pnpx web-ext sign --api-key $WEBEXT_USER --api-secret $WEBEXT_SECRET --channel=unlisted
- env:
- WEBEXT_USER: ${{ secrets.WEBEXT_USER }}
- WEBEXT_SECRET: ${{ secrets.WEBEXT_SECRET }}
-
- name: Build
run: pnpm build --standalone
- - name: Rename extensions for more user friendliness
+ - name: Clean up obsolete files
run: |
- mv dist/*.xpi dist/Vencord-for-Firefox.xpi
- mv dist/extension-v3.zip dist/Vencord-for-Chrome-and-Edge.zip
- rm -rf dist/extension-v2-unpacked dist/extension-v2.zip
+ rm -rf dist/extension* Vencord.user.css
- name: Get some values needed for the release
id: release_values
run: |
echo "release_tag=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- - name: Upload Devbuild as release
+ - name: Upload DevBuild as release
run: |
gh release upload devbuild --clobber dist/*
gh release edit devbuild --title "DevBuild $RELEASE_TAG"
@@ -63,13 +54,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ env.release_tag }}
- - name: Upload Devbuild to builds repo
+ - name: Upload DevBuild to builds repo
run: |
git config --global user.name "$USERNAME"
git config --global user.email actions@github.com
git clone https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git upload
cd upload
+
+ GLOBIGNORE: .git:.gitignore:README.md:LICENSE
rm -rf *
cp -r ../dist/* .
@@ -78,6 +71,5 @@ jobs:
git push --force https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git
env:
API_TOKEN: ${{ secrets.BUILDS_TOKEN }}
- GLOBIGNORE: .git:.gitignore:README.md:LICENSE
GH_REPO: Vencord/builds
USERNAME: GitHub-Actions