diff --git a/.github/workflows/publish-python.yaml b/.github/workflows/publish-python.yaml index 0328a72b3..dfd64dac9 100644 --- a/.github/workflows/publish-python.yaml +++ b/.github/workflows/publish-python.yaml @@ -1,6 +1,15 @@ name: Publish nostr-protocol to PyPI -on: [workflow_dispatch] +on: + workflow_dispatch: + inputs: + dryrun: + default: "false", + options: + - "true" + - "false" + description: "Compile without publish to PyPI" + required: true jobs: build-linux-x86_64: @@ -48,7 +57,7 @@ jobs: python: ["3.9", "3.10", "3.11", "3.12"] defaults: run: - working-directory: bindings/nostr-ffi/bindings-python + working-directory: bindings/nostr-ffi/bindings-python steps: - name: "Checkout" uses: actions/checkout@v3 @@ -66,7 +75,7 @@ jobs: run: | sudo apt-get update -y sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu - + - name: "Generate nostr.py and binaries" run: bash ./scripts/generate-linux-aarch64.sh @@ -182,6 +191,7 @@ jobs: run: working-directory: bindings/nostr-ffi/bindings-python needs: [build-linux-x86_64, build-linux-aarch64, build-macos-arm64, build-macos-x86_64, build-windows] + if: inputs.dryrun == 'false' steps: - name: "Checkout" uses: actions/checkout@v3 diff --git a/.github/workflows/publish-sdk-python.yaml b/.github/workflows/publish-sdk-python.yaml index 4ca18bdec..c4a5d5f6d 100644 --- a/.github/workflows/publish-sdk-python.yaml +++ b/.github/workflows/publish-sdk-python.yaml @@ -1,6 +1,15 @@ name: Publish nostr-sdk to PyPI -on: [workflow_dispatch] +on: + workflow_dispatch: + inputs: + dryrun: + default: "false", + options: + - "true" + - "false" + description: "Compile without publish to PyPI" + required: true jobs: build-linux-x86_64: @@ -48,7 +57,7 @@ jobs: python: ["3.9", "3.10", "3.11", "3.12"] defaults: run: - working-directory: bindings/nostr-sdk-ffi/bindings-python + working-directory: bindings/nostr-sdk-ffi/bindings-python steps: - name: "Checkout" uses: actions/checkout@v3 @@ -66,7 +75,7 @@ jobs: run: | sudo apt-get update -y sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu - + - name: "Generate nostr_sdk.py and binaries" run: bash ./scripts/generate-linux-aarch64.sh @@ -182,6 +191,7 @@ jobs: run: working-directory: bindings/nostr-sdk-ffi/bindings-python needs: [build-linux-x86_64, build-linux-aarch64, build-macos-arm64, build-macos-x86_64, build-windows] + if: inputs.dryrun == 'false' steps: - name: "Checkout" uses: actions/checkout@v3