[up] Angular dependencies to v22.0.8 and related packages #545
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 Package | |
| on: | |
| push: | |
| pull_request: | |
| defaults: | |
| run: | |
| working-directory: src | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| include: | |
| - os: ubuntu-latest | |
| test-framework-command: --framework net10.0 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install DotNet | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: "10.0.x" | |
| - name: Restore Dependencies | |
| run: dotnet restore | |
| - name: Build Package | |
| run: dotnet build --no-restore -c Release | |
| - name: Perform Unit Testing | |
| run: dotnet test --no-build -c Release ${{ matrix.test-framework-command }} --verbosity normal --filter "TestCategory!=Benchmark" | |
| - name: Create Package | |
| run: dotnet pack Simplify.Web/Simplify.Web.csproj --no-build -c Release -o ./publish | |
| - name: Upload packages | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: Packages | |
| path: ./src/publish/ | |
| release: | |
| if: startsWith(github.ref, 'refs/tags/') | |
| needs: build | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Download packages | |
| uses: actions/download-artifact@v7 | |
| with: | |
| name: Packages | |
| path: packages | |
| - name: Extract changelog entry | |
| run: | | |
| awk '/^## \[/{if(f) exit; f=1; next} f' \ | |
| src/Simplify.Web/CHANGELOG.md \ | |
| > /tmp/release_notes.md | |
| - name: Create release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh release create "${{ github.ref_name }}" \ | |
| --title "${{ github.ref_name }}" \ | |
| --notes-file /tmp/release_notes.md \ | |
| packages/*.nupkg |