Merge pull request #3 from ByteGuard-HQ/refactor/mess-cleanup #11
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: Continout Integration | |
| on: | |
| push: | |
| branches: [ "dev", "master" ] | |
| pull_request: | |
| branches: [ "dev", "master" ] | |
| env: | |
| CI_BUILD_NUMBER_BASE: ${{ github.run_number }} | |
| CI_TARGET_BRANCH: ${{ github.head_ref || github.ref_name }} | |
| jobs: | |
| build: | |
| # We need to run on Windows as we're supporting .NET Framework | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup .NET ${{ env.NET_VERSION }} | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Compute and set build number | |
| shell: bash | |
| run: | | |
| echo "CI_BUILD_NUMBER=$(($CI_BUILD_NUMBER_BASE+1000))" >> $GITHUB_ENV | |
| - name: Build & Push | |
| env: | |
| DOTNET_CLI_TELEMTRY_OPTOUT: true | |
| NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| shell: pwsh | |
| run: | | |
| ./Build.ps1 |