diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd8ec17..5c49902 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,14 @@ on: release: types: [published] + workflow_dispatch: + inputs: + pypi: + description: 'Publish to PyPI' + required: true + default: false + type: boolean + jobs: build: uses: ./.github/workflows/build.yml @@ -13,6 +21,7 @@ jobs: name: Publish on PyPI needs: build runs-on: ubuntu-22.04 + if: ${{ github.event_name != 'workflow_dispatch' || inputs.pypi }} environment: name: pypi url: https://pypi.org/p/drive-backup @@ -39,9 +48,10 @@ jobs: uses: actions/download-artifact@v4 with: path: dist + pattern: "!(*Notifications*)" merge-multiple: true - name: Upload release assets id: upload-assets uses: softprops/action-gh-release@v2 with: - files: "!(*Notifications*)" + files: dist/*