mirror of
https://github.com/gorhill/uBlock.git
synced 2025-01-31 12:11:36 +01:00
Fix github-actions re uBO Lite
This commit is contained in:
parent
16b50852c3
commit
ba1d686795
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
|
echo "TAGNAME=$(basename $(ls dist/build/uBOLite_*.chromium.mv3.zip) .chromium.mv3.zip)" >> $GITHUB_ENV
|
||||||
RELEASENAME=${TAGNAME/_/ }
|
RELEASENAME=${TAGNAME/_/ }
|
||||||
echo "RELEASENAME=$RELEASENAME" >> $GITHUB_ENV
|
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
|
- name: Commit uBOLite MV3 build log file
|
||||||
# https://github.com/marketplace/actions/github-action-for-committing-changes-to-a-repository
|
# https://github.com/marketplace/actions/github-action-for-committing-changes-to-a-repository
|
||||||
uses: devops-infra/action-commit-push@master
|
uses: devops-infra/action-commit-push@master
|
||||||
@ -56,7 +56,7 @@ jobs:
|
|||||||
- name: Build Firefox uBOLite MV3 packages
|
- name: Build Firefox uBOLite MV3 packages
|
||||||
run: |
|
run: |
|
||||||
tools/make-mv3.sh firefox full
|
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
|
- name: Upload Firefox uBOLite MV3 package
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
|
@ -95,8 +95,12 @@ echo "*** uBOLite.mv3: extension ready"
|
|||||||
echo "Extension location: $DES/"
|
echo "Extension location: $DES/"
|
||||||
|
|
||||||
if [ "$FULL" = "yes" ]; then
|
if [ "$FULL" = "yes" ]; then
|
||||||
|
EXTENSION="zip"
|
||||||
|
if [ "$PLATFORM" = "firefox" ]; then
|
||||||
|
EXTENSION="xpi"
|
||||||
|
fi
|
||||||
echo "*** uBOLite.mv3: Creating publishable package..."
|
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)
|
TMPDIR=$(mktemp -d)
|
||||||
mkdir -p $TMPDIR
|
mkdir -p $TMPDIR
|
||||||
cp -R $DES/* $TMPDIR/
|
cp -R $DES/* $TMPDIR/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user