From ad98cb499c0f464cb3d057038a3924556e740d74 Mon Sep 17 00:00:00 2001 From: dnzbk Date: Sun, 25 Oct 2026 10:49:20 +0300 Subject: [PATCH] Add pipeline --- .github/workflows/tasks.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/tasks.yml diff --git a/.github/workflows/tasks.yml b/.github/workflows/tasks.yml new file mode 100644 index 0000000..9b7e8e2 --- /dev/null +++ b/.github/workflows/tasks.yml @@ -0,0 +1,47 @@ +name: extension tasks + +on: + push: + branches: + - master + tags: + - "v*" + pull_request: + branches: + - master + +jobs: + manifest: + uses: nzbgetcom/nzbget-extensions/.github/workflows/manifest.yml@main + + release: + if: startsWith(github.ref, 'refs/tags/v') + needs: [manifest] + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + # Installs the dependencies into build/Notify/lib and zips the result + - name: Build + run: ./build-extension.sh + + - name: Check the archive + run: | + set -euo pipefail + version=$(python3 -c "import json; print(json.load(open('manifest.json'))['version'])") + test "v${version}" = "${GITHUB_REF_NAME}" + if [ -n "$(find build/Notify/lib \( -name '*.so' -o -name '*.pyd' \) -print -quit)" ]; then + echo "compiled extensions left in lib/" + exit 1 + fi + unzip -l "build/notify-${version}-dist.zip" | grep "Notify/lib/apprise/__init__.py" + + - uses: ncipollo/release-action@v1 + with: + artifacts: "build/*-dist.zip,build/*.sha256"