Skip to content

Commit

Permalink
build: move deploy to publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma authored Nov 14, 2023
1 parent 75efeb8 commit 6e9e236
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,3 @@ jobs:
run: yarn
- name: Build
run: yarn build

deploy:
runs-on: ubuntu-latest

steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
- name: Install
run: yarn
- name: Build
run: yarn docs:build
env:
MEILISEARCH_HOST: ${{ secrets.MEILISEARCH_HOST }}
MEILISEARCH_READ_KEY: ${{ secrets.MEILISEARCH_READ_KEY }}
MEILISEARCH_WRITE_KEY: ${{ secrets.MEILISEARCH_WRITE_KEY }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.WORKFLOW_TOKEN }}
external_repository: koishi-bot/booru
publish_branch: pages
publish_dir: docs/.vitepress/dist
force_orphan: true
enable_jekyll: true
commit_message: '[skip ci] deploy'
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,30 @@ jobs:
- name: Publish packages
run: yarn pub

deploy:
runs-on: ubuntu-latest

steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
- name: Install
run: yarn
- name: Build
run: yarn docs:build
env:
MEILISEARCH_HOST: ${{ secrets.MEILISEARCH_HOST }}
MEILISEARCH_READ_KEY: ${{ secrets.MEILISEARCH_READ_KEY }}
MEILISEARCH_WRITE_KEY: ${{ secrets.MEILISEARCH_WRITE_KEY }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.WORKFLOW_TOKEN }}
external_repository: koishi-bot/booru
publish_branch: pages
publish_dir: docs/.vitepress/dist
force_orphan: true
enable_jekyll: true
commit_message: '[skip ci] deploy'

0 comments on commit 6e9e236

Please sign in to comment.