1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Attempt to make make GitHub Actions work

This commit is contained in:
Raymond Hill 2020-12-09 11:23:14 -05:00
parent 210fbf9353
commit 22a4848d8f
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -29,13 +29,30 @@ jobs:
tools/make-chromium.sh $VERSION
tools/make-firefox.sh $VERSION
tools/make-thunderbird.sh $VERSION
- name: Upload packages
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
- name: Upload Chromium package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
dist/build/uBlock0_$VERSION.chromium.zip
dist/build/uBlock0_$VERSION.firefox.xpi
dist/build/uBlock0_$VERSION.thunderbird.xpi
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/build/uBlock0_$VERSION.chromium.zip
asset_name: dist/build/uBlock0_$VERSION.chromium.zip
asset_content_type: application/octet-stream
- name: Upload Firefox package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/build/uBlock0_$VERSION.firefox.zip
asset_name: dist/build/uBlock0_$VERSION.firefox.zip
asset_content_type: application/octet-stream
- name: Upload Thunderbird package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/build/uBlock0_$VERSION.thunderbird.zip
asset_name: dist/build/uBlock0_$VERSION.thunderbird.zip
asset_content_type: application/octet-stream