Skip to content

Commit

Permalink
Added separate workflow for docs. (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rius authored Nov 6, 2024
1 parent 41fbc7b commit 3181543
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,6 @@ on:
- released

jobs:
deploy_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Install deps
run: pnpm install
- name: Build
run: pnpm docs:build -d docs_dist

- name: Setup git
run: |
git config --global lfs.allowincompletepush true
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
external_repository: taskiq-python/taskiq-python.github.io
publish_dir: ./docs_dist
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"

deploy:
runs-on: ubuntu-latest
steps:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/release_docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release docs

on:
workflow_dispatch:
release:
types:
- released

permissions:
contents: write

jobs:
deploy_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Install deps
run: pnpm install
- name: Build
run: pnpm docs:build -d docs_dist

- name: Setup git
run: |
git config --global lfs.allowincompletepush true
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
external_repository: taskiq-python/taskiq-python.github.io
publish_dir: ./docs_dist
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"

0 comments on commit 3181543

Please sign in to comment.