From 22a4848d8f0c12df3294e8d3008ee1e51aeb2792 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 9 Dec 2020 11:23:14 -0500 Subject: [PATCH] Attempt to make make GitHub Actions work --- .github/workflows/main.yml | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 959028469..ea14bf2c4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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