File tree Expand file tree Collapse file tree 5 files changed +2396
-9
lines changed Expand file tree Collapse file tree 5 files changed +2396
-9
lines changed Original file line number Diff line number Diff line change @@ -25,20 +25,27 @@ jobs:
25
25
with :
26
26
fetch-depth : 0
27
27
28
+ - uses : actions/cache@v1
29
+ with :
30
+ path : ~/.nuget/packages
31
+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
32
+ restore-keys : |
33
+ ${{ runner.os }}-nuget-
34
+
28
35
- name : Setup UmbPack
29
36
run : dotnet tool install Umbraco.Tools.Packages --global
30
37
31
38
- name : Restore
32
- run : dotnet restore ${{env.PROJECT}}
39
+ run : dotnet restore ${{ env.PROJECT }} --locked-mode
33
40
34
41
- name : Build
35
- run : dotnet build ${{env.PROJECT}} -c Release -p:ContinuousIntegrationBuild=true --no-restore
42
+ run : dotnet build ${{ env.PROJECT }} -c Release -p:ContinuousIntegrationBuild=true --no-restore
36
43
37
44
- name : Pack
38
- run : dotnet pack ${{env.PROJECT}} -c Release -o ${{env.OUTPUT}} --no-restore --no-build
45
+ run : dotnet pack ${{ env.PROJECT }} -c Release -o ${{ env.OUTPUT }} --no-restore --no-build
39
46
40
47
- name : Upload artifacts
41
48
uses : actions/upload-artifact@v2
42
49
with :
43
50
name : packages
44
- path : ${{env.OUTPUT}}
51
+ path : ${{ env.OUTPUT }}
Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
build :
13
- name : Build
14
13
uses : umbraco/UI-Examples/.github/workflows/build.yml@master
15
14
16
15
publish :
@@ -33,11 +32,11 @@ jobs:
33
32
echo "OURUMBRACO_PACKAGE=$packageFile" >> $GITHUB_ENV
34
33
35
34
- name : Push to Our.Umbraco
36
- run : umbpack push "${{env.OURUMBRACO_PACKAGE}}" -k "$env:apiKey" -a *
35
+ run : umbpack push "${{ env.OURUMBRACO_PACKAGE }}" -k "$env:apiKey" -a *
37
36
env :
38
- apiKey : ${{secrets.OURUMBRACO_API_KEY}}
37
+ apiKey : ${{ secrets.OURUMBRACO_API_KEY }}
39
38
40
39
- name : Push to NuGet
41
40
run : dotnet nuget push "*.nupkg" --api-key "$env:apiKey" --skip-duplicate
42
41
env :
43
- apiKey : ${{secrets.NUGET_API_KEY}}
42
+ apiKey : ${{ secrets.NUGET_API_KEY }}
Original file line number Diff line number Diff line change 5
5
<PackageReference Include =" Nerdbank.GitVersioning" Version =" 3.4.244" PrivateAssets =" all" />
6
6
</ItemGroup >
7
7
<PropertyGroup >
8
+ <RestorePackagesWithLockFile >true</RestorePackagesWithLockFile >
8
9
<GitVersionBaseDirectory >$(MSBuildThisFileDirectory)</GitVersionBaseDirectory >
9
10
</PropertyGroup >
10
11
</Project >
You can’t perform that action at this time.
0 commit comments