Skip to content

Commit ad02688

Browse files
authored
#PR 529: Add release workflow
1 parent 9e02750 commit ad02688

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Workflow to execute when a new version is released
2+
name: Release
3+
4+
on:
5+
release:
6+
7+
# Used for testing and manual execution
8+
workflow_dispatch:
9+
inputs:
10+
tag:
11+
description: 'Tag Ref'
12+
required: true
13+
14+
jobs:
15+
docfx:
16+
runs-on: ubuntu-latest
17+
name: Update DocFX documentation
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
ref: ${{ github.events.inputs.tag }}
22+
- uses: nikeee/[email protected]
23+
name: Build Documentation
24+
with:
25+
args: docs/help/docfx.json
26+
27+
# Disabled until know to be working
28+
# - uses: JamesIves/[email protected]
29+
# name: Publish documentation to Github Pages
30+
# with:
31+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
# BRANCH: gh-pages
33+
#
34+
# # The folder the action should deploy.
35+
# FOLDER: _site
36+
#
37+
# # Automatically remove deleted files from the deploy branch
38+
# CLEAN: true
39+
40+
- name: Upload documentation as artifact
41+
uses: actions/upload-artifact@v2
42+
with:
43+
path: _site

0 commit comments

Comments
 (0)