mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 10:09:38 +02:00
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
name: GitHub CI
|
|
|
|
on:
|
|
create:
|
|
branches: master
|
|
|
|
# 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: Clone repository
|
|
uses: actions/checkout@v2
|
|
- name: Build all packages
|
|
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
|