test(source-generators): add multi-targeting support and conditional … #15
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: Publish Core Preview | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths-ignore: | ||
| - 'docs/**' | ||
| - 'mkdocs.yml' | ||
| - '.github/workflows/docs.yaml' | ||
| - 'pyproject.toml' | ||
| - 'uv.lock' | ||
| - '**.md' | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| resolve: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| uses: LayeredCraft/devops-templates/.github/workflows/publish-preview.yml@v10.3 | ||
| with: | ||
| solution: MinimalLambda.sln | ||
| dotnetVersion: 11.0.x | ||
| prereleaseIdentifier: preview | ||
| hasTests: false | ||
| buildConfiguration: Release | ||
| push: | ||
| needs: [resolve, build] | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
| steps: | ||
| - uses: LayeredCraft/devops-templates/.github/actions/nuget-push@v10.3 | ||
| with: | ||
| user: ${{ secrets.NUGET_USER }} | ||
| - name: Publish core preview packages and symbols without duplicate suppression | ||
| env: | ||
| NUGET_API_KEY: ${{ steps.nuget-login.outputs.NUGET_API_KEY }} | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| # dotnet nuget push discovers and publishes adjacent .snupkg automatically. | ||
| for package in artifacts/*.nupkg; do | ||
| dotnet nuget push "$package" \ | ||
| --api-key "$NUGET_API_KEY" \ | ||
| --source https://api.nuget.org/v3/index.json | ||
| done | ||