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:
parent
392888506c
commit
ea89baf1fd
20
.github/workflows/main.yml
vendored
20
.github/workflows/main.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user