Release v0.6.1: hide bootstrap fallbacks and NullEvents with [EditorB… #23
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 NuGet | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: "Package version (e.g. 0.1.0)" | |
| required: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup .NET SDKs | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 10.0.x | |
| - name: Resolve version | |
| shell: bash | |
| run: | | |
| if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then | |
| VERSION="${{ github.event.inputs.version }}" | |
| elif [[ "${GITHUB_REF_NAME}" == v* ]]; then | |
| VERSION="${GITHUB_REF_NAME#v}" | |
| else | |
| echo "Error: tag must start with 'v'. Current tag: ${GITHUB_REF_NAME}" | |
| exit 1 | |
| fi | |
| echo "Publishing version: ${VERSION}" | |
| echo "VERSION=${VERSION}" >> "$GITHUB_ENV" | |
| - name: Pack and publish via Nuke | |
| shell: bash | |
| run: | | |
| set -o pipefail | |
| dotnet run --project "build/_build.csproj" -- --target Publish --configuration Release --version "${{ env.VERSION }}" --nuget-api-key "${{ secrets.NUGET_API_KEY }}" 2>&1 | tee publish.log | |
| - name: Upload publish log | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: nuget-publish-log | |
| path: ./publish.log | |
| if-no-files-found: warn | |
| - name: Upload package artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: nuget-packages | |
| path: artifacts/package/*.nupkg | |
| if-no-files-found: warn |