From ea89baf1fd6dd616110c9cde1599c0f9b16cd517 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 9 Dec 2020 10:35:02 -0500 Subject: [PATCH] Attempt to make make GitHub Actions work --- .github/workflows/main.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7d638224e..601324b53 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,22 +3,24 @@ name: GitHub CI on: create: branches: master - workflow_dispatch: # I used as template to get started: # https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/.github/workflows/releases.yml +# https://github.com/dessant/search-by-image/blob/master/.github/workflows/ci.yml jobs: build: name: Build packages runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') steps: - - name: Build all - if: startsWith(github.ref, 'refs/tags/') + - name: Clone repository + uses: actions/checkout@v2 + - name: Build all packages run: | - "$GITHUB_WORKSPACE/tools/make-chromium.sh $VERSION" - "$GITHUB_WORKSPACE/tools/make-firefox.sh $VERSION" - "$GITHUB_WORKSPACE/tools/make-thunderbird.sh $VERSION" + tools/make-chromium.sh $VERSION + tools/make-firefox.sh $VERSION + tools/make-thunderbird.sh $VERSION - name: Upload packages uses: softprops/action-gh-release@v1 @@ -28,6 +30,6 @@ jobs: VERSION: ${{ format(github.ref, 'refs/tags/', '') }} with: files: | - "$GITHUB_WORKSPACE/dist/build/uBlock0_$VERSION.chromium.zip" - "$GITHUB_WORKSPACE/dist/build/uBlock0_$VERSION.firefox.xpi" - "$GITHUB_WORKSPACE/dist/build/uBlock0_$VERSION.thunderbird.xpi" + dist/build/uBlock0_$VERSION.chromium.zip + dist/build/uBlock0_$VERSION.firefox.xpi + dist/build/uBlock0_$VERSION.thunderbird.xpi