Prepare for KSA public release #4
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: PR Build check | |
| on: | |
| pull_request: | |
| # Re-run the version calculation when labels are added or when new commits are pushed | |
| types: [opened, synchronize, labeled, reopened, edited] | |
| branches: [main] | |
| permissions: | |
| pull-requests: write | |
| contents: read | |
| jobs: | |
| preview: | |
| runs-on: ubuntu-latest | |
| env: | |
| DOTNET_VERSION: 9.0 | |
| PROJECT: StarMapLoader/StarMapLoader.csproj | |
| NUGET_SOURCE: "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Setup Github NuGet | |
| run: | | |
| dotnet nuget add source --username "${{ github.actor }}" --password "${{ secrets.GITHUB_TOKEN }}" --store-password-in-clear-text --name github "${{ env.NUGET_SOURCE }}" | |
| - name: Restore dependencies | |
| run: dotnet restore ${{ env.PROJECT }} | |
| # - name: Run tests | |
| # run: dotnet test --no-build --verbosity normal | |
| - name: Build | |
| run: dotnet build ${{ env.PROJECT }} -c Release |