Skip to content

fix NRE when showing the Prompt win non-async call #5

fix NRE when showing the Prompt win non-async call

fix NRE when showing the Prompt win non-async call #5

Workflow file for this run

name: Build and publish
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Install workloads
run: dotnet workload install -s https://api.nuget.org/v3/index.json android ios maccatalyst
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'microsoft'
java-version: '17'
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Build
run: msbuild src/Acr.UserDialogs /p:Configuration=Release /p:PublicRelease=true /restore
- name: Pack
run: msbuild src/Acr.UserDialogs /p:Configuration=Release /p:PublicRelease=true /t:Pack
- uses: actions/upload-artifact@master
with:
name: build-artifacts
path: src/Acr.UserDialogs/bin
publish:
permissions:
packages: write
needs: build
runs-on: ubuntu-latest
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
include-prerelease: true
- uses: actions/download-artifact@master
with:
name: build-artifacts
path: src/Acr.UserDialogs/bin
- name: Publish
if: ${{ github.event_name == 'push' }}
env:
token: ${{ secrets.GITHUB_TOKEN }}
run: |
dotnet nuget add source https://nuget.pkg.github.com/emclient/index.json -n github
find src/Acr.UserDialogs/bin/Release -name '*.nupkg' | xargs -i dotnet nuget push {} -s github --api-key ${{ secrets.GITHUB_TOKEN }}