1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02:00

Fix github-actions re uBO Lite

This commit is contained in:
Raymond Hill 2023-04-07 13:34:27 -04:00
parent 16b50852c3
commit ba1d686795
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 7 additions and 3 deletions

View File

@ -28,7 +28,7 @@ jobs:
echo "TAGNAME=$(basename $(ls dist/build/uBOLite_*.chromium.mv3.zip) .chromium.mv3.zip)" >> $GITHUB_ENV
RELEASENAME=${TAGNAME/_/ }
echo "RELEASENAME=$RELEASENAME" >> $GITHUB_ENV
cp dist/build/uBOLite.chromium.mv3/log.txt dist/mv3/
cp dist/build/uBOLite.chromium/log.txt dist/mv3/
- name: Commit uBOLite MV3 build log file
# https://github.com/marketplace/actions/github-action-for-committing-changes-to-a-repository
uses: devops-infra/action-commit-push@master
@ -56,7 +56,7 @@ jobs:
- name: Build Firefox uBOLite MV3 packages
run: |
tools/make-mv3.sh firefox full
echo "PACKAGE=$(basename $(ls dist/build/uBOLite_*.firefox.mv3.zip))" >> $GITHUB_ENV
echo "PACKAGE=$(basename $(ls dist/build/uBOLite_*.firefox.mv3.xpi))" >> $GITHUB_ENV
- name: Upload Firefox uBOLite MV3 package
uses: actions/upload-release-asset@v1
env:

View File

@ -95,8 +95,12 @@ echo "*** uBOLite.mv3: extension ready"
echo "Extension location: $DES/"
if [ "$FULL" = "yes" ]; then
EXTENSION="zip"
if [ "$PLATFORM" = "firefox" ]; then
EXTENSION="xpi"
fi
echo "*** uBOLite.mv3: Creating publishable package..."
PACKAGENAME="uBOLite_$(jq -r .version $DES/manifest.json).$PLATFORM.mv3.zip"
PACKAGENAME="uBOLite_$(jq -r .version $DES/manifest.json).$PLATFORM.mv3.$EXTENSION"
TMPDIR=$(mktemp -d)
mkdir -p $TMPDIR
cp -R $DES/* $TMPDIR/