From 6d421a0adad2349c2c269292993e31a5fbd61723 Mon Sep 17 00:00:00 2001 From: Arcelibs <49543451+Arcelibs@users.noreply.github.com> Date: Tue, 26 Dec 2023 23:18:23 +0800 Subject: [PATCH] Update python-package.yml --- .github/workflows/python-package.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 634f8de..4d73b3c 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -3,10 +3,14 @@ name: Python application Cuda on: push: paths: - - 'Local-Windows/**' + - 'Local-Windows/main.py' + - 'Local-Windows/AutoYT.cmd' + - 'Local-Windows/requirements.txt' pull_request: paths: - - 'Local-Windows/**' + - 'Local-Windows/main.py' + - 'Local-Windows/AutoYT.cmd' + - 'Local-Windows/requirements.txt' jobs: package-and-upload: @@ -27,10 +31,10 @@ jobs: - name: Package Files run: | - Compress-Archive -Path Local-Windows\* -DestinationPath packaged-files.zip + Compress-Archive -Path Local-Windows\AutoYT.cmd, Local-Windows\main.py, Local-Windows\requirements.txt -DestinationPath "Python application Cuda.zip" - name: Upload Packaged Files as Artifact uses: actions/upload-artifact@v2 with: - name: Python application Cuda - path: packaged-files.zip + name: Python-application-Cuda + path: "Python application Cuda.zip"