mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Fix github-actions re uBO Lite
This commit is contained in:
parent
16b50852c3
commit
ba1d686795
2 changed files with 7 additions and 3 deletions
4
.github/workflows/mv3.yml
vendored
4
.github/workflows/mv3.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue