2525jobs :
2626 build :
2727 runs-on : windows-latest
28+ permissions :
29+ contents : write
2830
2931 steps :
3032 - name : Checkout repository
3133 uses : actions/checkout@v4
32-
3334 - name : Install Node.js
3435 uses : actions/setup-node@v4
3536 with :
36- node-version : ' 20'
37+ node-version : ' 20.19.0 '
3738
3839 - name : Install pnpm
3940 uses : pnpm/action-setup@v2
4849 echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
4950
5051 - name : Setup pnpm cache
51- uses : actions/cache@v3
52+ uses : actions/cache@v4
5253 with :
5354 path : ${{ steps.pnpm-store.outputs.STORE_PATH }}
5455 key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -81,10 +82,10 @@ jobs:
8182 id : should_release
8283 shell : bash
8384 run : |
84- if [[ "${{ github.ref_type }} " == "tag" ]]; then
85+ if [[ "${GITHUB_REF} " == refs/tags/* ]]; then
8586 echo "CREATE_RELEASE=true" >> $GITHUB_OUTPUT
86- echo "TAG_NAME=${{ github.ref_name } }" >> $GITHUB_OUTPUT
87- echo "Triggered by tag: ${{ github.ref_name } }"
87+ echo "TAG_NAME=${GITHUB_REF_NAME }" >> $GITHUB_OUTPUT
88+ echo "Triggered by tag: ${GITHUB_REF_NAME }"
8889 elif [[ "${{ github.event.inputs.create_release }}" == "true" ]]; then
8990 echo "CREATE_RELEASE=true" >> $GITHUB_OUTPUT
9091 TAG_NAME="${{ github.event.inputs.tag_name }}"
@@ -110,45 +111,37 @@ jobs:
110111 with :
111112 name : ReinaManager-${{ steps.get_version.outputs.VERSION }}-win_x64-exe
112113 path : src-tauri/target/release/ReinaManager.exe
114+ if-no-files-found : warn
113115
114116 - name : Upload MSI Installer (Artifact)
115117 if : steps.should_release.outputs.CREATE_RELEASE == 'false'
116118 uses : actions/upload-artifact@v4
117119 with :
118120 name : ReinaManager-${{ steps.get_version.outputs.VERSION }}-win_x64-msi
119121 path : src-tauri/target/release/bundle/msi/*.msi
122+ if-no-files-found : warn
120123
121124 - name : Upload NSIS Installer (Artifact)
122125 if : steps.should_release.outputs.CREATE_RELEASE == 'false'
123126 uses : actions/upload-artifact@v4
124127 with :
125128 name : ReinaManager-${{ steps.get_version.outputs.VERSION }}-win_x64-setup
126129 path : src-tauri/target/release/bundle/nsis/*.exe
130+ if-no-files-found : warn
127131
128132 # Release build: Create GitHub Release
129133 - name : Create Release
130134 if : steps.should_release.outputs.CREATE_RELEASE == 'true'
131135 id : create_release
132- uses : softprops/action-gh-release@v1
136+ uses : softprops/action-gh-release@v2
133137 with :
134138 tag_name : ${{ steps.should_release.outputs.TAG_NAME }}
135- name : ReinaManager ${{ steps.should_release.outputs.TAG_NAME }}
139+ name : ${{ steps.should_release.outputs.TAG_NAME }}
136140 body : |
137- ## ReinaManager ${{ steps.should_release.outputs.TAG_NAME }}
138-
139- ### Download Files
140- - **License**: LICENSE file included
141- - **Windows NSIS Installer**: ReinaManager-${{ steps.get_version.outputs.VERSION }}-win_x64-setup.exe
142- - **Windows MSI Installer**: ReinaManager-${{ steps.get_version.outputs.VERSION }}-win_x64.msi
143- - **Source Code**: Available as zip and tar.gz archives
144-
145- ### Installation
146- 1. Download the installer file (.exe or .msi)
147- 2. Run the installer and follow the setup wizard
148- 3. Launch ReinaManager from Start Menu or Desktop
149-
150- ### What's New
151- Please check the commit history for detailed changes.
141+ Windows x64 installers for ReinaManager.
142+ - Version: ${{ steps.get_version.outputs.VERSION }}
143+ - Includes: NSIS .exe and MSI installers
144+ - Architecture: win_x64
152145 draft : false
153146 prerelease : false
154147 generate_release_notes : true
0 commit comments