diff --git a/.github/settings.yml b/.github/settings.yml index 9633984..7da3ead 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -61,7 +61,7 @@ branches: required_pull_request_reviews: null required_status_checks: strict: false - contexts: ['Build, Test & Pack'] + contexts: ['Build & Test (Windows)'] enforce_admins: false required_linear_history: false restrictions: null diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c3f984..0ac3293 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: jobs: build-win: - name: Build, Test & Pack + name: Build & Test (Windows) runs-on: windows-2022 steps: - name: Checkout @@ -23,28 +23,3 @@ jobs: - name: Run tests run: dotnet test --no-build -c Release - - name: Set Dev version - if: github.ref == 'refs/heads/main' - shell: bash - run: | - version="$(git describe --long --tags | sed 's/^v//;0,/-/s//./')" - if [ -z "${version}" ]; then - version="0.0.0.$(git rev-list --count HEAD)-g$(git rev-parse --short HEAD)" - fi - echo "VERSION=${version}" >> $GITHUB_ENV - - - name: Set Release version - if: startsWith(github.ref, 'refs/tags/v') - shell: bash - run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV - - - name: Pack NuGet artifacts - if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') - run: dotnet pack --no-build -c Release -p:PackageVersion="${{ env.VERSION }}" - - - name: Upload artifacts - if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') - uses: actions/upload-artifact@v4 - with: - name: nupkgs - path: src/**/*nupkg