mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-16 12:51:39 +00:00
ci: update docs
This commit is contained in:
parent
a8bfeadc0c
commit
306552a0d8
18
.github/workflows/docs.yml
vendored
18
.github/workflows/docs.yml
vendored
@ -37,6 +37,11 @@ jobs:
|
||||
name: chronocat-docs-${{ github.sha }}
|
||||
path: packages/docs/build
|
||||
|
||||
- name: Build Packages
|
||||
run: |
|
||||
curl -fsSL -o - https://${{ secrets.DEPLOY_TOKEN }}@github.com/ilharp/chronocat-dist/archive/refs/heads/master.tar.gz | tar -zxvf - --strip-components=1 -C packages/docs/build
|
||||
shell: bash
|
||||
|
||||
- name: Publish to Vercel
|
||||
if: github.ref == 'refs/heads/master'
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
@ -49,16 +54,3 @@ jobs:
|
||||
publish_dir: packages/docs/build
|
||||
enable_jekyll: true # Not to create .nojekyll since this is not a gh page
|
||||
commit_message: 'chore: publish ${{ github.sha }}'
|
||||
|
||||
- name: Publish to GitHub Pages
|
||||
if: github.ref == 'refs/heads/master'
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
personal_token: ${{ secrets.DEPLOY_TOKEN }}
|
||||
user_name: 'Il Harper'
|
||||
user_email: 'hi@ilharper.com'
|
||||
external_repository: chrononeko/chrononeko.github.io
|
||||
publish_branch: master
|
||||
publish_dir: packages/docs/build
|
||||
enable_jekyll: true # Not to create .nojekyll since this is not a gh page
|
||||
commit_message: 'chore: publish ${{ github.sha }}'
|
||||
|
Loading…
Reference in New Issue
Block a user