name: Deploy to Unraid Share on: push: branches: - main jobs: copy-file: runs-on: ubuntu-latest # Or your specific runner label container: volumes: - /mnt/user/static:/static steps: - name: Checkout Code uses: actions/checkout@v4 - name: Copy File to Unraid Share run: | source_files=($(find ./ -type f -name "*.css")) echo "Getting ready to copy ${#source_files[@]} files..." # Check if volume was mounted if [ -d /static ]; then echo "Share exists. NOTE: This will also succeed when the volume is not added as an allowed volume." else exit 1 fi mkdir -p /static/andromeda/css/ # Copy files for file in "${source_files[@]}"; do cp $file /static/andromeda/css/ # Check if file was actually copied if [ -e $file ]; then echo "$file was copied successfully!" else echo "There was an error copying $file" exit 1 fi done