Skip to content

Commit fd94af9

Browse files
committed
Update CI script
1 parent 5f9cf02 commit fd94af9

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/main.yml

+7-9
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
build:
99
env:
1010
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
11+
NUGET_FEED: https://api.nuget.org/v3/index.json
1112
runs-on: windows-latest
1213

1314
steps:
@@ -16,18 +17,15 @@ jobs:
1617
uses: actions/setup-dotnet@v1
1718
with:
1819
dotnet-version: 5.0.x
20+
1921
- name: Add Beta source
2022
run: dotnet nuget add source "https://www.myget.org/F/umbracoprereleases/api/v3/index.json" -n "Umbraco Prereleases"
21-
- name: Restore dependencies
22-
run: dotnet restore
23+
2324
- name: Build
24-
run: dotnet build --no-restore
25+
run: dotnet pack --include-source --include-symbols -c Release src/Our.Umbraco.GraphQL/Our.Umbraco.GraphQL.csproj -o .
26+
2527
# - name: Test
2628
# run: dotnet test --no-build --verbosity normal
29+
2730
- name: Publish NuGet
28-
uses: brandedoutcast/publish-nuget@v2.5.5
29-
with:
30-
PROJECT_FILE_PATH: src/Our.Umbraco.GraphQL/Our.Umbraco.GraphQL.csproj
31-
VERSION_REGEX: ^\s*<versionPrefix>(.*)<\/versionPrefix>\s*$
32-
NUGET_KEY: ${{ env.NUGET_TOKEN }}
33-
INCLUDE_SYMBOLS: true
31+
run: dotnet nuget push *.nupkg -s '${{ env.NUGET_FEED }}' -k '${{ env.NUGET_TOKEN }}'

src/Our.Umbraco.GraphQL/Our.Umbraco.GraphQL.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<packageTags>umbraco umbracocms graphql</packageTags>
1010
<copyright>Copyright © 2021 Rasmus John Pedersen</copyright>
1111
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12-
<versionPrefix>9.0.0-alpha003</versionPrefix>
12+
<versionPrefix>9.0.0-alpha004</versionPrefix>
1313
</PropertyGroup>
1414

1515
<PropertyGroup>

0 commit comments

Comments
 (0)