Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build and Package

env:
Output: .\output

# Controls when the action will run
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "1.1.*"
jobs:

build-and-package:
runs-on: windows-latest

steps:
- name: Get tag
id: get_tag
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash

- name: Checkout
uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1.4.0

- name: install Umbraco package tool
run: dotnet tool install Umbraco.Tools.Packages --global

- name: Build
run: dotnet build .\ActiveIS.UmbracoForms.CustomEmail.sln --configuration Release

- name: Pack Umbraco package
run: UmbPack pack .\package.xml -o ${{ env.Output }} -v ${{ steps.get_tag.outputs.VERSION }}

- name: Pack NuGet package
run: dotnet pack .\Builds\NuGet
--configuration Release
--output ${{ env.Output }}
-p:Version=${{ steps.get_tag.outputs.VERSION }}
-p:PackageId=ActiveIS.UmbracoForms.CustomEmail

- name: Push package to NuGet
run: dotnet nuget push ${{ env.Output }}\ActiveIS.UmbracoForms.CustomEmail.${{ steps.get_tag.outputs.VERSION }}.nupkg
--api-key ${{ secrets.NUGET_DEPLOY_KEY }}
--source https://api.nuget.org/v3/index.json

- name: Push package to Umbraco
run: umbpack push -k ${{ secrets.UMBRACO_DEPLOY_KEY }} ${{ env.Output }}\ActiveIS.UmbracoForms.CustomEmail${{ steps.get_tag.outputs.VERSION }}.zip
35 changes: 35 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<umbPackage>
<info>
<package>
<name>ActiveIS.UmbracoForms.CustomEmail</name>
<version>1.1.1</version>
<iconUrl>https://media.githubusercontent.com/media/ActiveIS/ActiveIS.UmbracoForms.CustomEmail/master/Builds/logo.png</iconUrl>
<licence url="https://opensource.org/licenses/MIT">MIT</licence>
<url>https://our.umbraco.com/packages/website-utilities/activeisumbracoformscustomemail//</url>
<requirements type="strict">
<major>8</major>
<minor>6</minor>
<patch>1</patch>
</requirements>
</package>
<author>
<name>ActiveIS</name>
<website>https://github.com/ActiveIS/ActiveIS.UmbracoForms.CustomEmail</website>
</author>
<readme><![CDATA[A customizable email template which does not include the form data]]></readme>
</info>
<files>
<folder path="src/ActiveIS.UmbracoForms.CustomEmail/App_Plugins/ActiveIS.UmbracoForms.CustomEmail" orgPath="App_Plugins/ActiveIS.UmbracoForms.CustomEmail" />
<file path="src/ActiveIS.UmbracoForms.CustomEmail/bin/Release/net472/ActiveIS.UmbracoForms.CustomEmail.dll" orgPath="bin/ActiveIS.UmbracoForms.CustomEmail.dll" />
<file path="src/ActiveIS.UmbracoForms.CustomEmail/Views/Partials/Forms/CustomEmails/CustomTemplate.html" orgPath="Views/Partials/Forms/CustomEmails/CustomTemplate.html" />
</files>
<Actions />
<DocumentTypes />
<Templates />
<Stylesheets />
<Macros />
<DictionaryItems />
<Languages />
<DataTypes />
</umbPackage>