This commit is contained in:
Admin9705
2025-05-04 17:49:23 -04:00
parent 91811c781b
commit ce7d7c1aa3
+18 -5
View File
@@ -12,12 +12,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
with:
fetch-depth: 0 # Full history for versioning
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
with:
python-version: '3.10'
@@ -92,11 +92,24 @@ jobs:
exit 1
fi
- name: Upload installer artifact
uses: actions/upload-artifact@v2
- name: Use custom upload method
run: |
# Create directory for artifacts
mkdir -p artifacts
# Copy the installer to the artifacts directory
$INSTALLER_FILE="${{ steps.installer-path.outputs.INSTALLER_FILE }}"
Copy-Item -Path $INSTALLER_FILE -Destination "artifacts/"
# List files in artifacts directory
Get-ChildItem -Path "artifacts/"
- name: Upload artifact
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: Huntarr-Windows-Installer
path: ${{ steps.installer-path.outputs.INSTALLER_FILE }}
path: artifacts/
retention-days: 30
- name: Create/Update Release
if: startsWith(github.ref, 'refs/tags/')