Skip to content

Merge branch 'main' of https://github.com/deveel/deveel.filters #1

Merge branch 'main' of https://github.com/deveel/deveel.filters

Merge branch 'main' of https://github.com/deveel/deveel.filters #1

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 61, Col: 11): Input version is required, but not provided while calling. .github/workflows/release.yml (Line: 61, Col: 11): Input assembly-version is required, but not provided while calling.
with:
nuget: true
clean:
name: "Cleaning Old Packages"
needs: publish
uses: ./.github/workflows/clean-packages.yml