-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (37 loc) · 1.09 KB
/
build-docs.yml
File metadata and controls
38 lines (37 loc) · 1.09 KB
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
name: build-docs
on:
push:
branches:
- main
jobs:
build-and-deploy:
env:
MESSAGEDATA: ${{ github.event.head_commit.message }}
TPMODE: ${{secrets.TP_MODE}}
TP_ALGOLIA: ${{secrets.TP_ALGOLIA}}
TP_CONFIG: ${{secrets.TP_CONFIG}}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
with:
repository: ${{secrets.TP_BUILD_REPO}}
token: ${{ secrets.TP_BUILD_ACCESS_TOKEN }}
persist-credentials: false
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16.13.x
- name: Install and Build
run: |
npm install --legacy-peer-deps
npm run build:site
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
token: ${{ secrets.TP_BUILD_ACCESS_TOKEN }}
BRANCH: main
commit-message: ${{ env.MESSAGEDATA }}
FOLDER: ${{secrets.TP_FOLDER}}
repository-name: 'Five-great/tinymce-plugin.github.io'