Skip to content

Commit 2477ba2

Browse files
authored
Merge pull request #5 from jmayntzhusen/build-pipeline
Build pipeline
2 parents be800ef + 3e47f9f commit 2477ba2

File tree

3 files changed

+98
-3
lines changed

3 files changed

+98
-3
lines changed

.github/workflows/build.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Builds a library, and packages it up.
2+
#
3+
# Works on a release/version tag
4+
# e.g release/1.0.2 will build v1.0.2
5+
#
6+
7+
name: Pack UI Examples
8+
9+
env:
10+
OUTPUT: ./Output
11+
12+
on:
13+
push:
14+
tags:
15+
- "release/*"
16+
17+
jobs:
18+
build:
19+
runs-on: windows-latest
20+
21+
steps:
22+
- name: Get Version
23+
id: get_version
24+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/release\//}
25+
shell: bash
26+
27+
- name: checkout
28+
uses: actions/checkout@v2
29+
30+
- name: Setup NuGet.exe for use with actions
31+
uses: NuGet/setup-nuget@v1
32+
with:
33+
nuget-version: ${{ matrix.nuget }}
34+
35+
- name: Setup .net core
36+
uses: actions/setup-dotnet@v1.4.0
37+
38+
- name: Setup UmbPack
39+
run: dotnet tool install Umbraco.Tools.Packages --global
40+
41+
- name: Setup MSBuild
42+
uses: microsoft/setup-msbuild@v1
43+
44+
- name: Restore Packages
45+
run: dotnet restore ./src
46+
47+
- name: Build Project
48+
run: msbuild ./src/Our.Umbraco.UiExamples -p:Configuration=Release
49+
50+
# path to your package.xml file should go here.
51+
- name: Create Umbraco package file
52+
run: UmbPack pack ./package.xml -o ${{ env.OUTPUT }} -v ${{ steps.get_version.outputs.VERSION }}
53+
54+
# # For the push step to work you will need to create an api key on Our, and save it as a secret on Github with the name "UMBRACO_DEPLOY_KEY"
55+
- name: Push package to Our
56+
run: umbpack push ${{ env.OUTPUT }}/UI_Examples_${{ steps.get_version.outputs.VERSION }}.zip -k ${{ secrets.UMBRACO_DEPLOY_KEY }}
57+
58+
- name: upload-artifacts
59+
uses: actions/upload-artifact@v2
60+
with:
61+
name: Build-Results-${{ steps.get_version.outputs.VERSION }}
62+
path: ${{ env.OUTPUT }}/**/*

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ This repository contains the UI Examples package.
44
## Installation
55
The UI Examples package can be installed via nuget.
66

7-
```
8-
PM>install-package
9-
'''
7+
TODO:
108

119
## Contributing
1210
Contributions are welcome! Please read our [Contribution Guidelines]('./CONTRIBUTING.md) for more information.

package.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<umbPackage>
3+
<info>
4+
<package>
5+
<name>UI Examples</name>
6+
<version>1.0.0</version>
7+
<iconUrl></iconUrl>
8+
<licence url="https://opensource.org/licenses/MIT">MIT</licence>
9+
<url>https://our.umbraco.com</url>
10+
<requirements type="strict">
11+
<major>8</major>
12+
<minor>0</minor>
13+
<patch>0</patch>
14+
</requirements>
15+
</package>
16+
<author>
17+
<name>UmbracoPackageTeam</name>
18+
<website>https://our.umbraco.com</website>
19+
</author>
20+
<readme><![CDATA[Collection of UI examples for the Umbraco Backoffice. They are all installed into a new section and are self-documented.]]></readme>
21+
</info>
22+
<files>
23+
<folder path="src/Our.Umbraco.UiExamples/App_Plugins/uiexamples" orgPath="app_plugins/uiexamples" />
24+
<file path="src/Our.Umbraco.UiExamples/bin/Release/net472/Our.Umbraco.UiExamples.dll" orgPath="bin/Our.Umbraco.UiExamples.dll" />
25+
</files>
26+
<Actions />
27+
<control />
28+
<DocumentTypes />
29+
<Templates />
30+
<Stylesheets />
31+
<Macros />
32+
<DictionaryItems />
33+
<Languages />
34+
<DataTypes />
35+
</umbPackage>

0 commit comments

Comments
 (0)