generated from sillsdev/docu-notion-sample-site
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.19 KB
/
release.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
# name: Release
# on:
# push:
# branches:
# - main
# workflow_dispatch:
# inputs:
# logLevel:
# description: "Log level"
# required: false
# default: "warning"
# jobs:
# release:
# name: Release
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: Setup Node.js
# uses: actions/setup-node@v3
# with:
# node-version: lts/*
# - name: Install dependencies
# run: yarn
# - name: Pull from Notion
# env:
# DOCU_NOTION_INTEGRATION_TOKEN: ${{ secrets.DOCU_NOTION_INTEGRATION_TOKEN }}
# DOCU_NOTION_SAMPLE_ROOT_PAGE: ${{ secrets.DOCU_NOTION_SAMPLE_ROOT_PAGE }}
# run: yarn pull
# - name: Commit
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# commit_message: Apply changes from docu-notion
# - name: Build github pages branch
# run: yarn build
# - name: Deploy to gh-pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./build