-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 958 Bytes
/
deploy.yml
File metadata and controls
36 lines (33 loc) · 958 Bytes
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
name: CD
on:
# can be manually triggered
workflow_dispatch:
# automatically triggered by push events on main only or with cloudview tags
push:
branches:
- 'main'
tags:
- 'cloudview-*'
jobs:
# build and run the Docker container to validate the model and generate the documentation
# then publish the HTML artifacts to GitHub Pages
build:
# validate the model
uses: ./.github/workflows/build.yml
# publish from GitHub workspace
deploy:
needs: build
runs-on: ubuntu-latest
steps:
# Download from GitHub workspace
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: Documentation
path: artifacts
- name: Deploy HTML to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: artifacts
destination_dir: ${{ github.REF_NAME }}