-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (38 loc) · 1.09 KB
/
ci.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
name: CI
on:
push:
branches:
- main
repository_dispatch:
types: [stages-updates]
jobs:
activate:
runs-on: self-ubuntu-22.04
if: |
github.repository == 'master-csmi/csmi' &&
!startsWith(github.event.head_commit.message, 'Release ') &&
!contains(github.event.head_commit.message, 'ci skip')
steps:
- run: echo ok go
docs:
if: "!contains(github.event.head_commit.message, 'doc skip')"
needs: activate
runs-on: self-ubuntu-22.04
steps:
- uses: actions/checkout@v2.3.1
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm install
- name: Install credentials
run: echo https://$GITHUB_OAUTH:@github.com > $HOME/.git-credentials
env:
GITHUB_OAUTH: ${{ secrets.CR_PAT }}
- name: Build
run: npm run antora
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: public # The folder the action should deploy.