-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·50 lines (42 loc) · 1.14 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: GitHub Pages
on:
push:
branches:
- main # Set a branch name to trigger deployment
workflow_dispatch: {}
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
DTC_HEADLES: true
steps:
- uses: actions/checkout@v3
# Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
# Install dependencies
- name: Install dependencies
run: |
./setup_test_environment.sh
# Setup and generate site
- name: setup
run: chmod +x dtcw
- name: generateSite
run: ./dtcw generateSite
# Run tests and generate reports
- name: Run tests with coverage
run: python run_tests_html.py
- name: copyToPublic
run: cp -r ./build/microsite/output ./public
# Deploy
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public