-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.yml
64 lines (52 loc) · 1.47 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: buildCI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
DOTNETVERSION: 8.0.100-rc.2.23502.2
jobs:
buildMauiLib:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: Install .NET 8
shell: bash
run: |
curl -o dotnet-install.sh -sSL https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh
sh dotnet-install.sh --version ${{env.DOTNETVERSION}}
dotnet --list-sdks
- name: List installed .NET info
shell: pwsh
run: dotnet --info
- name: Install .NET MAUI
shell: bash
run: |
dotnet workload install android ios maui
- name: Restore nuget packages
run: |
dotnet restore <path_to_sln>
- name: Build and Pack Library
run: |
dotnet pack <path to csproj> -c Release
- uses: actions/upload-artifact@v2
with:
name: artifacts-nuget
path: |
**/*.nupkg
# publish:
# name: Publish
# needs:
# - build
# runs-on: windows-latest
# steps:
# - name: Download Artifacts
# uses: actions/download-artifact@v1
# with:
# name: nuget-artifact
#
# - name: Push nuget to Nuget.org
# run: |
# dotnet nuget push foo.nupkg -k <API_KEY> -s https://api.nuget.org/v3/index.json --skip-duplicat