feat: Update assets for new Millennium version, and fix some UX issues #50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Millennium | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build-windows: | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: (Setup) Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - name: Cache vcpkg | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| vendor/vcpkg/installed | |
| vendor/vcpkg/buildtrees | |
| vendor/vcpkg/packages | |
| key: vcpkg-windows-${{ runner.os }}-${{ hashFiles('vcpkg.json') }} | |
| restore-keys: | | |
| vcpkg-windows-${{ runner.os }}- | |
| - name: (Setup) Semantic Release | |
| run: npm install --save-dev semantic-release @semantic-release/github @semantic-release/exec @semantic-release/changelog @semantic-release/git | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: (Setup) Get Next Version | |
| run: . resources\version.ps1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build Millennium | |
| run: | | |
| cmake --preset=release | |
| cmake --build build --config Release | |
| mkdir -p D:/a/build/unsigned | |
| mv build/Release/Installer.exe D:/a/build/unsigned/MillenniumInstaller-Windows.exe | |
| - name: Upload Build Artifact | |
| id: upload-unsigned-artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| include-hidden-files: true | |
| name: millennium-windows | |
| path: D:/a/build/unsigned/MillenniumInstaller-Windows.exe | |
| - name: Sign Installer Build | |
| id: sign_artifact | |
| uses: signpath/github-action-submit-signing-request@v1.1 | |
| with: | |
| api-token: "${{ secrets.SIGNPATH_API_TOKEN }}" | |
| organization-id: "f90532fc-e58c-4863-bc0d-72623720335f" | |
| project-slug: "Millenium_Installer" | |
| signing-policy-slug: "release-signing" | |
| artifact-configuration-slug: "millennium-installer-release-config" | |
| github-artifact-id: "${{ steps.upload-unsigned-artifact.outputs.artifact-id }}" | |
| output-artifact-directory: "signed-millennium" | |
| wait-for-completion: true | |
| - name: 📤 Upload Signed Build Release | |
| id: upload-signed-artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| include-hidden-files: true | |
| name: millennium-windows-signed | |
| path: "signed-millennium/MillenniumInstaller-Windows.exe" | |
| - name: Create GitHub Release | |
| run: npx semantic-release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |