From 1426a5d11ec761e1c8c929253d596217785845e2 Mon Sep 17 00:00:00 2001 From: Roberto Prevato Date: Thu, 1 Feb 2024 19:46:41 +0100 Subject: [PATCH] Workflow maintenance --- .github/workflows/build.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe96d46..6f94e8e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,11 @@ name: Build on: + workflow_dispatch: + publish_artifacts: + description: 'Publish artifacts (Y|N)' + required: true + default: 'N' release: types: [published] push: @@ -104,21 +109,22 @@ jobs: if: matrix.python-version == '3.11' - name: Upload distribution package - uses: actions/upload-artifact@master + uses: actions/upload-artifact@v4 with: - name: dist + name: dist-${{ matrix.os }}-${{ matrix.python-version }} path: dist if: matrix.python-version == '3.11' publish: runs-on: ubuntu-latest needs: build - if: github.event_name == 'release' + if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_artifacts == 'Y') steps: - name: Download the distribution package - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: - name: dist + pattern: dist-* + merge-multiple: true path: dist - name: Use Python 3.11