Skip to content

Release

Release #134

Workflow file for this run

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: pull-request
uses: repo-sync/pull-request@v2
with:
destination_branch: "main"
- 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
cname: 'docs.fluxbuilder.com'