Skip to content

Commit c635d87

Browse files
Update build and publish scripts
1 parent 03645d5 commit c635d87

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
workflow_call:
99

1010
env:
11+
DOTNET_NOLOGO: true
12+
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
13+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1114
PROJECT: ./src/Our.Umbraco.UiExamples/Our.Umbraco.UiExamples.csproj
1215
OUTPUT: ./dist
1316

.github/workflows/publish.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ on:
33
tags:
44
- 'release-*'
55

6+
env:
7+
DOTNET_NOLOGO: true
8+
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
9+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
10+
611
jobs:
712
build:
813
name: Build
@@ -25,14 +30,14 @@ jobs:
2530
- name: Get Umbraco package file name
2631
run: |
2732
$packageFile = Get-Item *.zip | Select-Object -First 1 -ExpandProperty Name
28-
echo "packageFile=$packageFile" >> $GITHUB_ENV
33+
echo "OURUMBRACO_PACKAGE=$packageFile" >> $GITHUB_ENV
2934
30-
- name: Push to Our Umbraco
31-
run: umbpack push "$env:packageFile" -k "$env:apiKey" -a *
35+
- name: Push to Our.Umbraco
36+
run: umbpack push "${{env.OURUMBRACO_PACKAGE}}" -k "$env:apiKey" -a *
3237
env:
33-
apiKey: ${{ secrets.OURUMBRACO_API_KEY }}
38+
apiKey: ${{secrets.OURUMBRACO_API_KEY}}
3439

3540
- name: Push to NuGet
36-
run: dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "$env:apiKey" --skip-duplicate
41+
run: dotnet nuget push "*.nupkg" --api-key "$env:apiKey" --skip-duplicate
3742
env:
38-
apiKey: ${{ secrets.NUGET_API_KEY }}
43+
apiKey: ${{secrets.NUGET_API_KEY}}

src/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"publicReleaseRefSpec": [
88
"^refs/heads/master$",
9-
"^refs/heads/release/\\d+(\\.\\d+)?(\\.\\d+)?$"
9+
"^refs/heads/release-\\d+(\\.\\d+)?(\\.\\d+)?$"
1010
],
1111
"cloudBuild": {
1212
"buildNumber": {

0 commit comments

Comments
 (0)