chore: commit docs to docs repo

This commit is contained in:
DIYgod
2024-03-18 19:36:56 +08:00
parent 4a1c89cf0d
commit 939a77ecab
12 changed files with 213 additions and 45 deletions
+23
View File
@@ -1,6 +1,7 @@
name: Build assets
on:
workflow_dispatch:
push:
branches:
- master
@@ -46,3 +47,25 @@ jobs:
publish_dir: ./assets
user_name: 'github-actions[bot]'
user_email: '41898282+github-actions[bot]@users.noreply.github.com'
- name: Pushes to docs repository - en
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.DOCS_SSH_DEPLOY_KEY }}
with:
source-directory: './assets/build/docs/en'
target-directory: './src/routes'
destination-github-username: 'RSSNext'
destination-repository-name: 'rsshub-docs'
user-email: '41898282+github-actions[bot]@users.noreply.github.com'
target-branch: 'github-actions[bot]'
- name: Pushes to docs repository - zh
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.DOCS_SSH_DEPLOY_KEY }}
with:
source-directory: './assets/build/docs/zh'
target-directory: './src/zh/routes'
destination-github-username: 'RSSNext'
destination-repository-name: 'rsshub-docs'
user-email: '41898282+github-actions[bot]@users.noreply.github.com'
target-branch: 'github-actions[bot]'