update github doc action
Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
parent
df1f5ee55c
commit
e71d81f25c
20
.github/workflows/doc.yml
vendored
20
.github/workflows/doc.yml
vendored
@ -2,8 +2,12 @@ name: Doc
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
paths:
|
paths:
|
||||||
- 'doc/**'
|
- "doc/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
copy-file:
|
copy-file:
|
||||||
@ -11,13 +15,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Pushes docs file
|
- name: Pushes docs file
|
||||||
uses: slumbering/copy_file_to_another_repo_action@main
|
uses: dagger/doc_copy_action@main
|
||||||
env:
|
env:
|
||||||
API_TOKEN_GITHUB: ${{ secrets.DAGGERCI_TOKEN }}
|
API_TOKEN_GITHUB: ${{ secrets.DAGGERCI_TOKEN }}
|
||||||
with:
|
with:
|
||||||
source_file: 'doc/'
|
source_file: "doc/"
|
||||||
destination_repo: 'dagger/launch.dagger.io'
|
destination_repo: "dagger/launch.dagger.io"
|
||||||
destination_folder: 'site/'
|
destination_folder: "site/doc"
|
||||||
user_email: 'noreply@dagger.io'
|
user_email: "noreply@dagger.io"
|
||||||
user_name: 'dagger-bot'
|
user_name: "dagger-bot"
|
||||||
|
Reference in New Issue
Block a user