Merge branch 'main' of https://github.com/deveel/deveel.filters #1
Workflow file for this run
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: "Release" | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*.*.*' # Triggers on version tags like v1.0.0, v2.1.3, etc. | ||
| jobs: | ||
| build: | ||
| name: "Builds (.NET ${{ matrix.dotnet-version }})" | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - dotnet-version: '6.0.x' | ||
| framework-moniker: 'net6.0' | ||
| - dotnet-version: '7.0.x' | ||
| framework-moniker: 'net7.0' | ||
| - dotnet-version: '8.0.x' | ||
| framework-moniker: 'net8.0' | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: "Extract version from tag" | ||
| id: extract_version | ||
| run: | | ||
| # Remove 'v' prefix from tag and extract version | ||
| VERSION=${GITHUB_REF#refs/tags/v} | ||
| echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
| echo "Extracted version: $VERSION" | ||
| - name: "Setup .NET ${{ matrix.dotnet-version }}" | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: ${{ matrix.dotnet-version }} | ||
| - name: "Restore" | ||
| run: dotnet restore -p:TargetFramework=${{ matrix.framework-moniker }} | ||
| - name: "Build" | ||
| run: dotnet build -c Release --no-restore --framework ${{ matrix.framework-moniker }} | ||
| - name: "Test" | ||
| run: dotnet test -c Release --no-restore --no-build --framework ${{ matrix.framework-moniker }} --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[*.XUnit]*" | ||
| - name: Upload coverage reports to Codecov | ||
| uses: codecov/codecov-action@v4 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| publish: | ||
| name: "Publish Packages" | ||
| needs: build | ||
| uses: ./.github/workflows/publish-packages.yml | ||
|
Check failure on line 61 in .github/workflows/release.yml
|
||
| with: | ||
| nuget: true | ||
| clean: | ||
| name: "Cleaning Old Packages" | ||
| needs: publish | ||
| uses: ./.github/workflows/clean-packages.yml | ||