Skip to content

Commit

Permalink
ci: Move docs build to specific workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LucJosin committed Aug 27, 2023
1 parent 2bfaff7 commit c022410
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 15 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 'Build and Publish docs'

on:
push:
tags:
- 'v[0-9].[0-9]+.[0-9]'
workflow_dispatch:

jobs:
build-publish-docs:
runs-on: ubuntu-latest
steps:
- name: Set up checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up yarn (Node 18)
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: Install dependencies
run: yarn install

## Docs

- name: Build docs
run: yarn build:doc

- run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- uses: kiprasmel/git-publish-generated-branch@v0
with:
ARGS: '--dir "docs" --branch "ph-pages"'
15 changes: 0 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
steps:
- name: Set up checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up yarn (Node 18)
uses: actions/setup-node@v3
Expand All @@ -30,16 +28,3 @@ jobs:
run: yarn run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

## Docs

- name: Build docs
run: yarn build:doc

- run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- uses: kiprasmel/git-publish-generated-branch@v0
with:
ARGS: '--dir "docs" --branch "ph-pages"'

0 comments on commit c022410

Please sign in to comment.