-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (53 loc) · 1.53 KB
/
deploy.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
45
46
47
48
49
50
51
52
53
54
55
name: Deploy to GitHub Pages
on:
push:
branches: [main]
paths-ignore:
- README.md
- LICENSE
- .gitignore
- .github/**
jobs:
build:
name: Build and deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
- name: Build website
run: |
yarn install --frozen-lockfile
npm install -g premail
yarn run premail-output-update
yarn build
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.GH_PAGES_DEPLOY }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./build
user_name: Premail
user_email: [email protected]
copy:
needs: build
name: Copy basic documentation files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Copy files
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: 'src/pages/.'
destination_repo: 'premail/premail'
destination_branch: 'main'
destination_folder: 'docs'
user_email: '[email protected]'
user_name: 'rootwork'
commit_message: '[bot] Updated documentation from docs website'