-
-
Notifications
You must be signed in to change notification settings - Fork 226
63 lines (53 loc) · 1.48 KB
/
build.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
name: Build
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
push:
branches:
- master
- main
- dev
- preview
- v*
env:
NugetApiKey: ${{secrets.NUGETAPIKEY}}
TwitterConsumerKey: ${{secrets.TWITTER_CONSUMER_KEY}}
TwitterConsumerSecret: ${{secrets.TWITTER_CONSUMER_SECRET}}
TwitterAccessToken: ${{secrets.TWITTER_ACCESS_TOKEN}}
TwitterAccessTokenSecret: ${{secrets.TWITTER_ACCESS_TOKEN_SECRET}}
DiscordToken: ${{secrets.DISCORD_TOKEN}}
DiscordGuildId: '679761126598115336'
DiscordChannelId: '803717285986566174'
MastodonClientId: ${{secrets.MASTODON_CLIENT_ID}}
MastodonClientSecret: ${{secrets.MASTODON_CLIENT_SECRET}}
MastodonInstance: 'dotnet.social'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- uses: AdoptOpenJDK/install-jdk@v1
with:
version: '13'
architecture: x64
- name: Add .NET Workloads
run: dotnet workload install maui-ios maui-android maui-maccatalyst maui-windows
- name: Build
run: dotnet run --project build/ShinyBuild.csproj
- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
name: nugets
path: ${{ github.workspace }}/artifacts
retention-days: 5