Skip to content

reference to Avalonia 11.3.0 submodule #39

reference to Avalonia 11.3.0 submodule

reference to Avalonia 11.3.0 submodule #39

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
- name: Verify dotnet info
run: dotnet --info
- name: Test
shell: pwsh
run: dotnet test -c Release
build:
name: Build
needs: [ test ]
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
runs-on: windows-latest
strategy:
matrix:
include:
- ProjectName: "Avalonia.WebView2"
PackageId: "WebView2.Avalonia"
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
- name: Verify dotnet info
run: dotnet --info
- name: Build
shell: pwsh
run: dotnet build -c Release src\${{ matrix.ProjectName }}\${{ matrix.ProjectName }}.csproj
- name: Run NativeAssets Bat
shell: pwsh
run: cmd.exe /c src\WebView2.NativeAssets.Win32.bat
- name: Push nuget packages
shell: pwsh
run: |
dotnet nuget push pkg\${{ matrix.PackageId }}*.nupkg -s https://nuget.pkg.github.com/BeyondDimension -k ${{ secrets.RMBADMIN_TOKEN }} --skip-duplicate
dotnet nuget push pkg\${{ matrix.PackageId }}*.snupkg -s https://nuget.pkg.github.com/BeyondDimension -k ${{ secrets.RMBADMIN_TOKEN }} --skip-duplicate
dotnet nuget push pkg\${{ matrix.PackageId }}*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate
dotnet nuget push pkg\${{ matrix.PackageId }}*.snupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate
release:
name: Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Changelog
uses: glennawatson/ChangeLog@v1
id: changelog
- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.RMBADMIN_TOKEN }}
body: ${{ steps.changelog.outputs.commitLog }}
draft: false
prerelease: false