1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-01 00:29:39 +02:00

Attempt to make make GitHub Actions work

This commit is contained in:
Raymond Hill 2020-12-09 10:35:02 -05:00
parent 392888506c
commit ea89baf1fd
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -3,22 +3,24 @@ name: GitHub CI
on: on:
create: create:
branches: master branches: master
workflow_dispatch:
# I used as template to get started: # I used as template to get started:
# https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/.github/workflows/releases.yml # 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: jobs:
build: build:
name: Build packages name: Build packages
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps: steps:
- name: Build all - name: Clone repository
if: startsWith(github.ref, 'refs/tags/') uses: actions/checkout@v2
- name: Build all packages
run: | run: |
"$GITHUB_WORKSPACE/tools/make-chromium.sh $VERSION" tools/make-chromium.sh $VERSION
"$GITHUB_WORKSPACE/tools/make-firefox.sh $VERSION" tools/make-firefox.sh $VERSION
"$GITHUB_WORKSPACE/tools/make-thunderbird.sh $VERSION" tools/make-thunderbird.sh $VERSION
- name: Upload packages - name: Upload packages
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
@ -28,6 +30,6 @@ jobs:
VERSION: ${{ format(github.ref, 'refs/tags/', '') }} VERSION: ${{ format(github.ref, 'refs/tags/', '') }}
with: with:
files: | files: |
"$GITHUB_WORKSPACE/dist/build/uBlock0_$VERSION.chromium.zip" dist/build/uBlock0_$VERSION.chromium.zip
"$GITHUB_WORKSPACE/dist/build/uBlock0_$VERSION.firefox.xpi" dist/build/uBlock0_$VERSION.firefox.xpi
"$GITHUB_WORKSPACE/dist/build/uBlock0_$VERSION.thunderbird.xpi" dist/build/uBlock0_$VERSION.thunderbird.xpi