forked from Teradata/quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (31 loc) · 853 Bytes
/
publish.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
name: Publish to GitHub Pages
on:
workflow_dispatch:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 17
cache: npm
- name: Run Antora
run: ./buildw
- name: Add static resources
run: cp -fr ./static/. ./build/site/
- name: Turnstyle
if: ${{ ! env.GITHUB_TOKEN == '' }}
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/site
cname: quickstarts.teradata.com
keep_files: true