This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (53 loc) · 1.63 KB
/
dotnet.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
name: .NET
on:
push:
paths:
- 'RiotGames.Client/**'
- 'RiotGames.Client.CodeGeneration/**'
- 'RiotGames.Client.Tests/**'
- 'RiotGames.Messaging.Client/**'
- '.github/workflows/dotnet.yml'
- '.github/actions/**'
- 'README.md'
pull_request:
paths:
- 'RiotGames.Client/**'
- 'RiotGames.Client.CodeGeneration/**'
- 'RiotGames.Client.Tests/**'
- 'RiotGames.Messaging.Client/**'
- '.github/workflows/dotnet.yml'
- '.github/actions/**'
- 'README.md'
workflow_dispatch:
jobs:
build:
name: 'Build & Pack'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: 'Checkout'
- uses: ./.github/actions/dotnet-build-and-pack
name: 'Build & Pack'
with:
RIOT_GAMES_API_TOKEN: ${{ secrets.RIOT_GAMES_API_TOKEN }}
LOL_USERNAME: ${{ secrets.LOL_USERNAME }}
LOL_PASSWORD: ${{ secrets.LOL_PASSWORD }}
nuget-org:
name: 'NuGet.org'
uses: mikaeldui/actions/.github/workflows/nuget.org-deploy.yml@main
needs: build
with:
snupkg_artifact_name: 'snupkg'
secrets:
NUGET_ORG_API_KEY: ${{ secrets.NUGET_ORG_API_KEY }}
github-packages:
name: 'GitHub Packages'
uses: mikaeldui/actions/.github/workflows/github-packages-deploy.yml@main
needs: build
github-release:
name: 'GitHub Release'
uses: mikaeldui/actions/.github/workflows/github-release.yml@main
needs: [nuget-org, github-packages]
with:
github_packages_url: ${{ needs.github-packages.outputs.url }}
nuget_org_url: ${{ needs.nuget-org.outputs.url }}