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
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-sign-win: | |
| runs-on: windows-2025 | |
| steps: | |
| # - name: Checkout repository | |
| # uses: actions/checkout@v3 | |
| # - name: Set up Node.js | |
| # uses: actions/setup-node@v3 | |
| # with: | |
| # node-version: '24' | |
| - name: Install dependencies | |
| run: | | |
| winget install -e --accept-source-agreements --accept-package-agreements --id Microsoft.Azure.TrustedSigningClientTools | |
| ls "C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\signtool.exe" | |
| ls "$env:LOCALAPPDATA\Microsoft\MicrosoftTrustedSigningClientTools\" | |
| # yarn install --frozen-lockfile | |
| # - name: Build the project | |
| # run: npm run build | |
| # - name: Sign the executable | |
| # env: | |
| # SIGNING_CERTIFICATE: ${{ secrets.SIGNING_CERTIFICATE }} | |
| # SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
| # run: | | |
| # echo $SIGNING_CERTIFICATE | base64 -d > certificate.pfx | |
| # signtool sign /f certificate.pfx /p $SIGNING_PASSWORD /tr http://timestamp.digicert.com /td sha256 /fd sha256 path\to\your\executable.exe | |
| # - name: Upload artifact | |
| # uses: actions/upload-artifact@v3 | |
| # with: | |
| # name: signed-executable |