chore(deps): update dependency dotnet-sdk to v10.0.302 #111
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: Combined CI / Release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| prerelease: | |
| description: 'Create as pre-release' | |
| required: false | |
| default: false | |
| type: boolean | |
| push: | |
| branches: | |
| - '**' | |
| jobs: | |
| shared_ci_cd: | |
| permissions: | |
| contents: read | |
| uses: mu88/common/.github/workflows/ci-cd.yml@b2b64ff794f717b127ca29a51803998e25453854 | |
| with: | |
| dotnet-cache-dependencies-via-lock-file: false # by default, NuGet lock files are used. However, ElectronNET seem to have issues with that | |
| sonar-additional-params: ' ' # neither code coverage nor additional Sonar parameters are used in this project | |
| sonar-key: mu88_ElectronWebsiteWrapper | |
| secrets: | |
| sonar-token: ${{ secrets.SONAR_TOKEN }} | |
| ci_cd: | |
| runs-on: windows-latest | |
| needs: shared_ci_cd | |
| permissions: | |
| attestations: write # Needed for build provenance and SBOM attestation | |
| contents: write # Needed to create GitHub Release | |
| id-token: write # Needed for attestations | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v7 | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| global-json-file: global.json | |
| - name: Build Windows app with ElectronNET | |
| run: dotnet publish ElectronWebsiteWrapper.csproj /p:PublishProfile=win-x64 /p:Version=${{ needs.shared_ci_cd.outputs.version }} | |
| - name: Generate SBOM and attest build provenance and SBOM | |
| uses: mu88/common/.github/actions/attest-provenance-sbom@b2b64ff794f717b127ca29a51803998e25453854 | |
| with: | |
| is-release: ${{ needs.shared_ci_cd.outputs.is_release }} | |
| sbom-file: sbom.json | |
| sbom-path: . | |
| subject-path: publish\Release\net*\*\ElectronWebsiteWrapper_${{ needs.shared_ci_cd.outputs.version }}.exe | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v3 | |
| if: ${{ needs.shared_ci_cd.outputs.is_release == 'true' || inputs.prerelease == true }} | |
| with: | |
| body: ${{ needs.shared_ci_cd.outputs.release_notes }} | |
| files: | | |
| sbom.json | |
| publish/Release/net*/*/ElectronWebsiteWrapper_${{ needs.shared_ci_cd.outputs.version }}.exe | |
| name: ${{ needs.shared_ci_cd.outputs.version }} | |
| tag_name: ${{ needs.shared_ci_cd.outputs.version }} | |
| prerelease: ${{ inputs.prerelease || false }} |