-
Notifications
You must be signed in to change notification settings - Fork 28
50 lines (36 loc) · 1.8 KB
/
sitemap.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
name: Sitemap Package Release
env:
OUTPUT: ./Output
CONFIG: Release
on:
workflow_dispatch:
inputs:
package_version:
description: 'Package version'
required: true
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .net core
uses: actions/[email protected]
- name: Restore dependencies
run: dotnet restore ./src/SeoToolkit.Umbraco.Sitemap/SeoToolkit.Umbraco.Sitemap.csproj
- name: Restore dependencies
run: dotnet restore ./src/SeoToolkit.Umbraco.Sitemap.Core/SeoToolkit.Umbraco.Sitemap.Core.csproj
- name: Build
run: dotnet build ./src/SeoToolkit.Umbraco.Sitemap.Core/SeoToolkit.Umbraco.Sitemap.Core.csproj --configuration ${{ env.CONFIG }} --no-restore
- name: Build
run: dotnet build ./src/SeoToolkit.Umbraco.Sitemap/SeoToolkit.Umbraco.Sitemap.csproj --configuration ${{ env.CONFIG }} --no-restore
- name: Create NuGet package file for Core
run: dotnet pack ./src/SeoToolkit.Umbraco.Sitemap.Core/SeoToolkit.Umbraco.Sitemap.Core.csproj -c ${{ env.CONFIG }} --no-build -o ${{ env.OUTPUT }} /p:version=${{ github.event.inputs.package_version }}
- name: Create NuGet package file for Backoffice
run: dotnet pack ./src/SeoToolkit.Umbraco.Sitemap/SeoToolkit.Umbraco.Sitemap.csproj -c ${{ env.CONFIG }} --no-build -o ${{ env.OUTPUT }} /p:version=${{ github.event.inputs.package_version }}
# - name: Push packages to NuGet
# run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_DEPLOY_KEY }} -s https://api.nuget.org/v3/index.json
- name: upload-artifacts
uses: actions/upload-artifact@v2
with:
name: Build-Results-${{ github.event.inputs.package_version }}
path: ${{ env.OUTPUT }}/**/*