1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-18 18:48:45 +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:
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