@@ -38,35 +38,21 @@ jobs:
3838 - name : Create package
3939 id : create_package
4040 run : |
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 }}")
41+ # Run the script and capture the output (which should be just the filename)
42+ OUTPUT_FILE =$(.github/workflows/scripts/create-package.sh "${{ steps.version.outputs.version }}" "${{ steps.current_time.outputs.timestamp }}")
4343
44- # Debug output
45- echo "Package script returned: '$FILENAME'"
44+ # Trim any whitespace
45+ OUTPUT_FILE=$( echo "$OUTPUT_FILE" | xargs)
4646
47- # Validate that the file exists
48- if [ -f "$FILENAME" ]; then
49- echo "Found package file: $FILENAME"
50- echo "package_path=$FILENAME" >> $GITHUB_OUTPUT
47+ echo "Generated package file: $OUTPUT_FILE"
48+
49+ # Verify the file exists
50+ if [ -f "$OUTPUT_FILE" ]; then
51+ echo "File exists and is readable"
52+ ls -la "$OUTPUT_FILE"
53+ echo "package_path=$OUTPUT_FILE" >> $GITHUB_OUTPUT
5154 else
52- echo "ERROR: Package file not found: $FILENAME"
53- exit 1
54- fi
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
61-
62- - name : Create Release
63- id : create_release
64- uses : softprops/action-gh-release@v1
65- # Run this step in all cases where we have a package
66- if : steps.create_package.outputs.package_path != ''
67- with :
68- files : ${{ steps.create_package.outputs.package_path }}
69- name : Rider-Waite-Smith Tarot Deck v${{ steps.version.outputs.version }}
55+ echo "ERROR
7056 tag_name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || format('v{0}', steps.version.outputs.version) }}
7157 draft: false
7258 prerelease: false
0 commit comments