-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (37 loc) · 1.17 KB
/
docs.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
name: Documentation and CHANGELOG
on:
push:
branches:
- develop
jobs:
docs:
name: Build docs and CHANGELOG
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: "14"
- name: Updating CHANGELOG
run: npm run changelog
- uses: EndBug/add-and-commit@v5
with:
add: "CHANGELOG.md"
branch: develop
message: "Update CHANGELOG.md file"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Copy README file
uses: canastro/copy-file-action@master
with:
source: "README.md"
target: "docs/README.md"
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: ./docs
CLEAN: true