chore: commit docs to docs repo
This commit is contained in:
@@ -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]'
|
||||
|
||||
Reference in New Issue
Block a user