@@ -38,26 +38,32 @@ jobs:
3838 - name : Create package
3939 id : create_package
4040 run : |
41- # Capture output in a variable
42- RESULT=$(.github/workflows/scripts/create-package.sh "${{ steps.version.outputs.version }}" "${{ steps.current_time.outputs.timestamp }}")
43- # Check if script succeeded
44- if [ $? -ne 0 ]; then
45- echo "Error creating package"
41+ # Create the package and capture only the filename
42+ FILENAME=$(.github/workflows/scripts/create-package.sh "${{ steps.version.outputs.version }}" "${{ steps.current_time.outputs.timestamp }}")
43+
44+ # Debug output
45+ echo "Package script returned: '$FILENAME'"
46+
47+ # Validate that the file exists
48+ if [ -f "$FILENAME" ]; then
49+ echo "Found package file: $FILENAME"
50+ echo "package_path=$FILENAME" >> $GITHUB_OUTPUT
51+ else
52+ echo "ERROR: Package file not found: $FILENAME"
4653 exit 1
4754 fi
48- # Check if file exists
49- if [ ! -f "$RESULT" ]; then
50- echo "Package file not found: $RESULT"
51- exit 1
52- fi
53- # Set outputs
54- echo "PACKAGE_PATH=$RESULT" >> $GITHUB_ENV
55- echo "package_path=$RESULT" >> $GITHUB_OUTPUT
55+
56+ - name : Debug outputs
57+ run : |
58+ echo "Version: ${{ steps.version.outputs.version }}"
59+ echo "Package path: ${{ steps.create_package.outputs.package_path }}"
60+ ls -la
5661
5762 - name : Create Release
5863 id : create_release
5964 uses : softprops/action-gh-release@v1
60- if : startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
65+ # Run this step in all cases where we have a package
66+ if : steps.create_package.outputs.package_path != ''
6167 with :
6268 files : ${{ steps.create_package.outputs.package_path }}
6369 name : Rider-Waite-Smith Tarot Deck v${{ steps.version.outputs.version }}
0 commit comments