Repository navigation
[Dependabot]: Bump Avalonia and Avalonia.Desktop #147
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: Build and publish to nuget | |
| on: | |
| push: | |
| branches: | |
| - main # Used for stable releases | |
| - develop # Used for preview releases | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Build check for all branches | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [windows-latest, macos-latest, ubuntu-latest] | |
| steps: | |
| - name: Install NuGet / .NET for macOS as workaround | |
| run: | | |
| if [ "$RUNNER_OS" == "Linux" ]; then | |
| echo '' | |
| elif [ "$RUNNER_OS" == "Windows" ]; then | |
| echo '' | |
| else | |
| nuget help || brew install nuget -q | |
| softwareupdate --install-rosetta --agree-to-license | |
| wget https://dot.net/v1/dotnet-install.sh | |
| chmod +x dotnet-install.sh | |
| ./dotnet-install.sh --architecture arm64 --channel 6.0 | |
| ./dotnet-install.sh --architecture x64 --channel 6.0 | |
| ./dotnet-install.sh --architecture arm64 --channel 7.0 | |
| ./dotnet-install.sh --architecture x64 --channel 7.0 | |
| ./dotnet-install.sh --architecture arm64 --channel 8.0 | |
| ./dotnet-install.sh --architecture x64 --channel 8.0 | |
| ./dotnet-install.sh --architecture arm64 --channel 9.0 | |
| ./dotnet-install.sh --architecture x64 --channel 9.0 | |
| ./dotnet-install.sh --architecture arm64 --channel 10.0 | |
| ./dotnet-install.sh --architecture x64 --channel 10.0 | |
| fi | |
| shell: bash | |
| - uses: actions/checkout@v6 | |
| - name: Setup dotnet 5-10 | |
| uses: actions/setup-dotnet@v5.2.0 | |
| with: | |
| dotnet-version: | | |
| 5.0.x | |
| 6.0.x | |
| 7.0.x | |
| 8.0.x | |
| 9.0.x | |
| 10.0.x | |
| - name: build AvaloniaProgressRing in Release on each OS as a smoke test (inc. PR's) | |
| run: dotnet build ${{ github.workspace }}/AvaloniaProgressRing/AvaloniaProgressRing.csproj --configuration Release | |
| publish: | |
| name: list on nuget | |
| runs-on: windows-latest | |
| needs: build | |
| if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup dotnet 5-10 | |
| uses: actions/setup-dotnet@v5.2.0 | |
| with: | |
| dotnet-version: | | |
| 5.0.x | |
| 6.0.x | |
| 7.0.x | |
| 8.0.x | |
| 9.0.x | |
| 10.0.x | |
| # Required for a specific dotnet version that doesn't come with ubuntu-latest / windows-latest | |
| # Visit bit.ly/2synnZl to see the list of SDKs that are pre-installed with ubuntu-latest / windows-latest | |
| # - name: Setup dotnet | |
| # uses: actions/setup-dotnet@v1 | |
| # with: | |
| # dotnet-version: 3.1.100 | |
| - name: build AvaloniaProgressRing in Release | |
| run: dotnet build ${{ github.workspace }}/AvaloniaProgressRing/AvaloniaProgressRing.csproj --configuration Release | |
| # Publish | |
| - name: publish Deadpikle.AvaloniaProgressRing on version change | |
| uses: nitz/publish-nuget@60fd3adf9d9eecc3bbf8a98738734d3061347172 | |
| with: | |
| PROJECT_FILE_PATH: ${{ github.workspace }}/AvaloniaProgressRing/AvaloniaProgressRing.csproj # Relative to repository root | |
| # VERSION_FILE_PATH: Directory.Build.props # Filepath with version info, relative to repository root. Defaults to project file | |
| # VERSION_REGEX: <Version>(.*)<\/Version> # Regex pattern to extract version info in a capturing group | |
| TAG_COMMIT: true # Flag to enable / disable git tagging | |
| # TAG_FORMAT: v* # Format of the git tag, [*] gets replaced with version | |
| NUGET_KEY: ${{secrets.NUGET_API_KEY}} # nuget.org API key | |
| PACKAGE_NAME: Deadpikle.AvaloniaProgressRing | |
| INCLUDE_SYMBOLS: true |