-
-
Notifications
You must be signed in to change notification settings - Fork 8
91 lines (74 loc) · 2.58 KB
/
deployNuGetProgrammerAll.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Build nuget dotnet programmer all
on:
push:
# branches:
# - main
tags:
- "vProgrammerAll*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [16.13.0]
steps:
- uses: actions/checkout@v2
# - name: Node ${{ matrix.node-version }}
# uses: actions/setup-node@v1
# with:
# node-version: ${{ matrix.node-version }}
# - name: Download main
# id: download-artifact
# uses: dawidd6/action-download-artifact@v2
# with:
# github_token: ${{secrets.GITHUB_TOKEN}}
# workflow: deployVersion.yml
# name: releaseBlocklyAutomation
# workflow_conclusion: success
# path: ${{github.workspace}}/src/Local/LocalAPI/LocalAPI/wwwroot/BlocklyAutomation
# if_no_artifact_found: fail
- name: Download artifact docs local api
id: download-artifact-docs-localAPI
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: deployVersion.yml
name: releaseBlocklyAutomation
workflow_conclusion: success
path: ${{github.workspace}}/src/Local/LocalAPI/LocalAPI/wwwroot/BlocklyAutomation/help/
if_no_artifact_found: fail
- name: verify exists
run: |
ls -l ${{github.workspace}}/src/Local/LocalAPI/LocalAPI/wwwroot
ls -l ${{github.workspace}}/src/Local/LocalAPI/LocalAPI/wwwroot/BlocklyAutomation
- name: Set up .NET Core 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.x'
include-prerelease: false
- name: Set up .NET Core 7
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'
include-prerelease: false
- name: Set up .NET Core 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
include-prerelease: false
- name: Build with dotnet
run: |
cd src
cd Local
cd LocalAPI
dotnet tool restore
dotnet r buildPack
- name: Upload nuget
uses: actions/upload-artifact@v2
with:
name: programmerAll
path: ${{github.workspace}}/src/Local/LocalAPI/PACK/
- name: push to nuget
run: |
dotnet nuget push ${{github.workspace}}/src/Local/LocalAPI/PACK/progr*symb*.*pkg --api-key ${{ secrets.NUGETAPIKEY }} --source https://api.nuget.org/v3/index.json