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-09 16:26:06 +01:00
|
|
|
"$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 }}
|
2020-12-09 16:14:36 +01:00
|
|
|
VERSION: ${{ format(github.ref, 'refs/tags/', '') }}
|
2020-12-08 18:37:09 +01:00
|
|
|
with:
|
|
|
|
files: |
|
2020-12-09 16:26:06 +01:00
|
|
|
"$GITHUB_WORKSPACE/dist/build/uBlock0_$VERSION.chromium.zip"
|
|
|
|
"$GITHUB_WORKSPACE/dist/build/uBlock0_$VERSION.firefox.xpi"
|
|
|
|
"$GITHUB_WORKSPACE/dist/build/uBlock0_$VERSION.thunderbird.xpi"
|