Package and Upload Files #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package and Upload Files | |
on: | |
# push: | |
# branches: | |
# - main | |
workflow_dispatch: # Allows manual run | |
inputs: {} # No inputs at this point | |
jobs: | |
package_and_upload: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Create module package file | |
id: create_package | |
run: | | |
cd modules/ObjectDetectionYOLOv5-6.2 | |
package_file=$(curl -sL https://raw.githubusercontent.com/codeproject/CodeProject.AI-Server/refs/heads/main/devops/build/create_packages.sh --no-color --github-action | bash) | |
echo "package_file=$package_file" >> $GITHUB_OUTPUT | |
- name: Upload ZIP as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ steps.create_package.outputs.package_file }} | |
path: ${{ steps.create_package.outputs.package_file }} | |
retention-days: 90 # 90 days is the max |