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 jobs: build: name: Build packages runs-on: ubuntu-latest steps: - name: Build all if: startsWith(github.ref, 'refs/tags/') run: | /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/') env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} VERSION: ${{ format(github.ref, 'refs/tags/', '') }} with: files: | /dist/build/uBlock0_$VERSION.chromium.zip /dist/build/uBlock0_$VERSION.firefox.xpi /dist/build/uBlock0_$VERSION.thunderbird.xpi