-
Notifications
You must be signed in to change notification settings - Fork 181
33 lines (30 loc) · 916 Bytes
/
Copy pathmain.yml
File metadata and controls
33 lines (30 loc) · 916 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
name: Knative Tutorial
on:
push:
paths:
- '**'
- '!.github/workflows/**'
- '.github/workflows/main.yml'
- '.github/workflows/site.yaml'
env:
SITE_DIR: "gh-pages"
jobs:
buildAnDeploySite:
name: "Build site with Antora"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: "Generate site using antora site action"
uses: kameshsampath/antora-site-action@v0.2.4
with:
antora_playbook: site.yaml
- name: Deploy Site
id: deploy_site
uses: peaceiris/actions-gh-pages@v3
with:
#deploy_key: "${{ secrets.TKN_STAGING_SITE_DEPLOY }}"
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: "${{ env.SITE_DIR }}"
publish_branch: "gh-pages"
full_commit_message: "[Release]${{ github.event.head_commit.message }}"