-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (40 loc) · 1.33 KB
/
deploy.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
name: Deploy to Production
on:
push:
tags:
- '*'
jobs:
build:
# The type of runner that the job will run on
runs-on: [ self-hosted, docsqa ]
steps:
- uses: actions/checkout@v4
with:
token: ${{ github.token }}
lfs: 'true'
clean: 'true'
fetch-depth: 0
- name: Pull NPM Dependencies
run: |
npm ci
- name: Generate menu
run: mkdir -p config/_default/; cat content/navigation.md | ./navigation2menu.js > config/_default/menu.en.json
# Build the HTML versions of the md using hugo
- name: Build WebChart HTML
run: hugo --config 'config-wc.toml' --minify --baseURL https://docs.webchartnow.com/
- name: Build Enterprise Health HTML
run: hugo --config 'config-eh.toml' --minify --baseURL https://docs.enterprisehealth.com/
- name: 'Deploy built documentation to production folder'
run: |
rsync -ruva public [email protected]:/www/docrootssl/docs
- name: Rocket.Chat Notification
uses: wreiske/[email protected]
if: always()
with:
type: ${{ job.status }}
job_name: '*Publish to Production*'
mention: 'here'
channel: '#miedocs'
url: ${{ secrets.ROCKETCHAT_WEBHOOK }}
commit: true
token: ${{ github.token }}