mirror of https://github.com/gorhill/uBlock.git
Attempt to make make GitHub Actions work
This commit is contained in:
parent
25bf99834f
commit
ece83e5834
|
@ -21,31 +21,32 @@ jobs:
|
||||||
pushd ..
|
pushd ..
|
||||||
git clone --depth 1 https://github.com/uBlockOrigin/uAssets.git
|
git clone --depth 1 https://github.com/uBlockOrigin/uAssets.git
|
||||||
popd
|
popd
|
||||||
- name: Set version
|
- name: Get release information
|
||||||
|
id: release_info
|
||||||
run: |
|
run: |
|
||||||
echo "VERSION=$(basename -- ${{ github.ref }})" >> $GITHUB_ENV
|
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||||
- name: Build all packages
|
|
||||||
run: |
|
|
||||||
tools/make-chromium.sh $VERSION
|
|
||||||
tools/make-firefox.sh $VERSION
|
|
||||||
tools/make-thunderbird.sh $VERSION
|
|
||||||
- name: Create GitHub release
|
- name: Create GitHub release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
with:
|
with:
|
||||||
tag_name: $VERSION
|
tag_name: steps.release_info.outputs.VERSION
|
||||||
release_name: $VERSION
|
release_name: steps.release_info.outputs.VERSION
|
||||||
draft: true
|
draft: true
|
||||||
|
- name: Build all packages
|
||||||
|
run: |
|
||||||
|
tools/make-chromium.sh ${{ steps.release_info.outputs.VERSION }}
|
||||||
|
tools/make-firefox.sh ${{ steps.release_info.outputs.VERSION }}
|
||||||
|
tools/make-thunderbird.sh ${{ steps.release_info.outputs.VERSION }}
|
||||||
- name: Upload Chromium package
|
- name: Upload Chromium package
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: dist/build/uBlock0_$VERSION.chromium.zip
|
asset_path: dist/build/uBlock0_${{ steps.release_info.outputs.VERSION }}.chromium.zip
|
||||||
asset_name: dist/build/uBlock0_$VERSION.chromium.zip
|
asset_name: dist/build/uBlock0_${{ steps.release_info.outputs.VERSION }}.chromium.zip
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
- name: Upload Firefox package
|
- name: Upload Firefox package
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
|
@ -53,8 +54,8 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: dist/build/uBlock0_$VERSION.firefox.zip
|
asset_path: dist/build/uBlock0_${{ steps.release_info.outputs.VERSION }}.firefox.zip
|
||||||
asset_name: dist/build/uBlock0_$VERSION.firefox.zip
|
asset_name: dist/build/uBlock0_${{ steps.release_info.outputs.VERSION }}.firefox.zip
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
- name: Upload Thunderbird package
|
- name: Upload Thunderbird package
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
|
@ -62,6 +63,6 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: dist/build/uBlock0_$VERSION.thunderbird.zip
|
asset_path: dist/build/uBlock0_${{ steps.release_info.outputs.VERSION }}.thunderbird.zip
|
||||||
asset_name: dist/build/uBlock0_$VERSION.thunderbird.zip
|
asset_name: dist/build/uBlock0_${{ steps.release_info.outputs.VERSION }}.thunderbird.zip
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
|
|
Loading…
Reference in New Issue