Skip to content

Commit d06d9ea

Browse files
authored
Added Release workflow (#148)
* Added Release workflow
1 parent 698b50d commit d06d9ea

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/release-build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release-Build
2+
on:
3+
release:
4+
type: created
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
steps:
12+
- name: Checkout Repo
13+
uses: actions/checkout@v2
14+
with:
15+
persist-credentials: false
16+
fetch-depth: 0
17+
18+
- name: Checkout submodules
19+
run: git submodule update --init --recursive
20+
21+
- name: Setup NuGet
22+
uses: NuGet/setup-nuget@v1.0.2
23+
with:
24+
nuget-version: latest
25+
26+
- name: Build Source
27+
run: .\Build-All.ps1
28+
29+
- name: Publish Artifacts
30+
uses: actions/upload-artifact@v1
31+
with:
32+
name: Nuget Packages
33+
path: .\BuildOutput\Nuget
34+
35+
- name: Commit Docs
36+
env:
37+
docspush_email: 32618965+cibuild-telliam@users.noreply.github.com
38+
docspush_username: cibuild-telliam
39+
run: .\Push-Docs.ps1 -SkipPush
40+
41+
- name: Push Docs
42+
uses: ad-m/github-push-action@master
43+
with:
44+
github_token: ${{ secrets.GITHUB_TOKEN }}
45+
directory: .\BuildOutput\docs
46+
branch: gh-pages

0 commit comments

Comments
 (0)