feat(bundles): CENTERLINE (rel 30) read and write sides (#574) #248
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: .NET Build and Publish | |
| on: | |
| push: | |
| tags: ["202[0-9].*.*"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: "nuget.org" | |
| permissions: | |
| id-token: write # enable GitHub OIDC token issuance for this job | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Checkout Bundle Spec Repo | |
| uses: ./.github/actions/checkout-bundle-spec | |
| with: | |
| token: ${{ secrets.CONNECTORS_GH_TOKEN }} | |
| # actions/checkout cannot write outside $GITHUB_WORKSPACE; the csproj expects the spec one level up. | |
| - name: Move speckle-bundle-spec to sibling location | |
| run: mv speckle-bundle-spec "$GITHUB_WORKSPACE/../speckle-bundle-spec" | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: 10.0.2xx #Keep aligned with global.json | |
| cache: true | |
| cache-dependency-path: "**/packages.lock.json" | |
| - id: set-version | |
| name: Set version to output | |
| run: | | |
| TAG=${{ github.ref_name }} | |
| if [[ "${{ github.ref }}" != refs/tags/* ]]; then | |
| TAG="0.0.0.${{ github.run_number }}" | |
| fi | |
| SEMVER="${TAG}" | |
| FILE_VERSION=$(echo "$TAG" | sed -E 's/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/') | |
| FILE_VERSION="$FILE_VERSION.${{ github.run_number }}" | |
| echo "semver=$SEMVER" >> "$GITHUB_OUTPUT" | |
| echo "fileVersion=$FILE_VERSION" >> "$GITHUB_OUTPUT" | |
| echo $SEMVER | |
| echo $FILE_VERSION | |
| - name: 🔫 Build and Pack | |
| run: ./build.sh pack | |
| env: | |
| SEMVER: ${{ steps.set-version.outputs.SEMVER }} | |
| FILE_VERSION: ${{ steps.set-version.outputs.FILE_VERSION }} | |
| - name: NuGet login (OIDC → temp API key) | |
| uses: NuGet/login@v1 | |
| id: login | |
| with: | |
| user: ${{ secrets.NUGET_USER }} | |
| - name: Push to nuget.org | |
| run: dotnet nuget push output/*.nupkg --source "https://api.nuget.org/v3/index.json" --api-key ${{steps.login.outputs.NUGET_API_KEY}} |