update github doc action

Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
slumbering 2021-05-20 10:21:06 +02:00
parent df1f5ee55c
commit e71d81f25c

View File

@ -2,22 +2,28 @@ name: Doc
on: on:
push: push:
branches:
- main
tags:
- v*
paths: paths:
- 'doc/**' - "doc/**"
jobs: jobs:
copy-file: copy-file:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Pushes docs file with:
uses: slumbering/copy_file_to_another_repo_action@main fetch-depth: 0
env: - name: Pushes docs file
API_TOKEN_GITHUB: ${{ secrets.DAGGERCI_TOKEN }} uses: dagger/doc_copy_action@main
with: env:
source_file: 'doc/' API_TOKEN_GITHUB: ${{ secrets.DAGGERCI_TOKEN }}
destination_repo: 'dagger/launch.dagger.io' with:
destination_folder: 'site/' source_file: "doc/"
user_email: 'noreply@dagger.io' destination_repo: "dagger/launch.dagger.io"
user_name: 'dagger-bot' destination_folder: "site/doc"
user_email: "noreply@dagger.io"
user_name: "dagger-bot"