9898
9999 - name : List files in the build directory
100100 run : ls -l ./dist
101+
102+ - name : Extract version from package.json
103+ id : extract_version
104+ run : |
105+ VERSION=$(node -p "require('./package.json').version")
106+ echo "Version extracted: $VERSION"
107+ echo "::set-output name=version::$VERSION"
108+
101109 release :
102110 needs : build-electron
103111 runs-on : ubuntu-latest
@@ -110,8 +118,12 @@ jobs:
110118 uses : actions/download-artifact@v3
111119 with :
112120 name : ${{ matrix.platform }}-builds
113- - name : List files in the build directory
114- run : ls -l ./dist
121+ - name : List Downloaded Files
122+ run : |
123+ echo "Listing downloaded files in the TxDOT directory:"
124+ ls -l /home/runner/work/TxDOT/TxDOT
125+ echo "Listing files specifically for SETUP and installer:"
126+ ls -l /home/runner/work/TxDOT/TxDOT/*SETUP* /home/runner/work/TxDOT/TxDOT/*.exe
115127 - name : Create GitHub Release
116128 id : create_release
117129 uses : actions/create-release@v1
@@ -127,8 +139,15 @@ jobs:
127139 with :
128140 upload_url : ${{ steps.create_release.outputs.upload_url }}
129141 asset_path : ./artifacts/*.exe
130- asset_name : TxCRCPME-win-v${{ github.run_number }}.exe
142+ asset_name : TxCRCPME-win-v${{ steps.extract_version.outputs.version }}.exe
131143 asset_content_type : application/octet-stream
144+ # - name: Upload Windows Installer
145+ # uses: actions/upload-release-asset@v1
146+ # with:
147+ # upload_url: ${{ steps.create_release.outputs.upload_url }}
148+ # asset_path: ./artifacts/*.exe
149+ # asset_name: TxCRCPME-win-v${{ github.run_number }}.exe
150+ # asset_content_type: application/octet-stream
132151
133152 # - name: Upload macOS Installer
134153 # uses: actions/upload-release-asset@v1
0 commit comments