1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-04 01:59:38 +02:00
uBlock/.github/workflows/main.yml

34 lines
1.0 KiB
YAML
Raw Normal View History

2020-12-08 18:37:09 +01:00
name: GitHub CI
on:
create:
2020-12-08 18:37:09 +01:00
branches: master
workflow_dispatch:
2020-12-08 18:37:09 +01:00
# I used as template to get started:
# https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/.github/workflows/releases.yml
jobs:
build:
2020-12-08 18:37:09 +01:00
name: Build packages
runs-on: ubuntu-latest
steps:
2020-12-08 18:37:09 +01:00
- name: Build all
if: startsWith(github.ref, 'refs/tags/')
run: |
"$GITHUB_WORKSPACE/tools/make-chromium.sh $VERSION"
"$GITHUB_WORKSPACE/tools/make-firefox.sh $VERSION"
"$GITHUB_WORKSPACE/tools/make-thunderbird.sh $VERSION"
2020-12-08 18:37:09 +01:00
- 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/', '') }}
2020-12-08 18:37:09 +01:00
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"