Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kmlbgn authored Jan 28, 2024
1 parent e1dd88b commit 79b5a6b
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,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
# 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

0 comments on commit 79b5a6b

Please sign in to comment.