2020-12-08 18:37:09 +01:00
|
|
|
name: GitHub CI
|
2020-12-08 18:05:02 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
create:
|
2020-12-08 18:37:09 +01:00
|
|
|
branches: master
|
2020-12-08 18:05:02 +01:00
|
|
|
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
|
|
|
|
|
2020-12-08 18:05:02 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
2020-12-08 18:37:09 +01:00
|
|
|
name: Build packages
|
2020-12-08 18:05:02 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-12-08 18:37:09 +01:00
|
|
|
- name: Build all
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
2020-12-08 18:05:02 +01:00
|
|
|
run: |
|
2020-12-08 18:37:09 +01:00
|
|
|
./tools/make-chromium.sh ${{ github.ref }}
|
|
|
|
./tools/make-firefox.sh ${{ github.ref }}
|
|
|
|
./tools/make-thunderbird.sh ${{ github.ref }}
|
|
|
|
|
|
|
|
- name: Upload packages
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
files: |
|
2020-12-08 19:35:28 +01:00
|
|
|
./dist/build/uBlock0_${{ github.ref }}.chromium.zip
|
|
|
|
./dist/build/uBlock0_${{ github.ref }}.firefox.xpi
|
|
|
|
./dist/build/uBlock0_${{ github.ref }}.thunderbird.xpi
|