-
Notifications
You must be signed in to change notification settings - Fork 30
38 lines (30 loc) · 1018 Bytes
/
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
name: Build
on:
push:
branches: [ master ]
jobs:
build:
env:
ASSEMBLY_FILE_VERSION: "3.0.0.${{ github.run_number }}"
NUGET_PACKAGE_VERSION: "3.0.0-alpha.${{ github.run_number }}"
PACKAGE_FILE: "Bin/Publish/Cassia-3.0.0.${{ github.run_number }}.zip"
NUGET_FILE: "Bin/Publish/Cassia.3.0.0-alpha.${{ github.run_number }}.nupkg"
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup MSBuild path
uses: microsoft/[email protected]
- name: Build
run: msbuild Cassia.targets
- name: Publish package
uses: actions/[email protected]
with:
name: Source
path: "${{ env.PACKAGE_FILE }}"
- name: Publish NuGet
uses: actions/[email protected]
with:
name: NuGet Package
path: "${{ env.NUGET_FILE }}"
- name: Push to NuGet Gallery
run: dotnet nuget push -k ${{ secrets.NuGetAPIKey }} -s https://api.nuget.org/v3/index.json ${{ env.NUGET_FILE }}