-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.16 KB
/
build-package.yml
File metadata and controls
32 lines (30 loc) · 1.16 KB
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
name: OpenSilver.TypeScriptDefinitionsToCSharp Build
on:
workflow_dispatch:
inputs:
opensilver-version:
description: 'OpenSilver version'
required: true
version:
description: 'OpenSilver.TypeScriptDefinitionsToCSharp package version'
required: true
jobs:
Build-Pack-Publish:
if: github.repository_owner == 'OpenSilver'
runs-on: windows-latest
steps:
- uses: microsoft/setup-msbuild@v1.1
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v3.x
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Clone OpenSilver.TypeScriptDefinitionsToCSharp repo
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Build OpenSilver.TypeScriptDefinitionsToCSharp NuGet package
run: ./build/Build_NuGet.bat ${{ github.event.inputs.version }} ${{ github.event.inputs.opensilver-version }}
- name: Upload packages to MyGet
run: |
dotnet nuget push "build\output\*.nupkg" -k ${{ secrets.MYGET_TOKEN }} -s https://www.myget.org/F/opensilver/api/v2/package