forked from aim42/htmlSanityCheck
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.06 KB
/
gh-pages.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
name: GitHub Pages
on:
push:
branches:
- main # Set a branch name to trigger deployment
# pull_request:
workflow_dispatch: {}
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
DTC_HEADLESS: true
steps:
- uses: actions/checkout@v2
- name: exportExcel
run: ./dtcw exportExcel
- name: generateSite
run: ./dtcw generateSite
- name: removeDraft
run: find build/microsite/output/. -name "*-draft.html" -type f -delete
- name: generatePdf
run: ./dtcw generatePdf
- name: htmlSanityCheck
run: ./dtcw htmlSanityCheck
- name: copyToPublic
run: cp -r ./build/pdf ./build/microsite/output && cp -r ./build/report/htmlchecks ./build/microsite/output && cp -r ./build/microsite/output ./public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public