From e71d81f25c20dabce738304d44e2fff62b47c9de Mon Sep 17 00:00:00 2001 From: slumbering Date: Thu, 20 May 2021 10:21:06 +0200 Subject: [PATCH] update github doc action Signed-off-by: slumbering --- .github/workflows/doc.yml | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 8d690148..832cf7f6 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -2,22 +2,28 @@ name: Doc on: push: + branches: + - main + tags: + - v* paths: - - 'doc/**' + - "doc/**" jobs: copy-file: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Pushes docs file - uses: slumbering/copy_file_to_another_repo_action@main - env: - API_TOKEN_GITHUB: ${{ secrets.DAGGERCI_TOKEN }} - with: - source_file: 'doc/' - destination_repo: 'dagger/launch.dagger.io' - destination_folder: 'site/' - user_email: 'noreply@dagger.io' - user_name: 'dagger-bot' + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Pushes docs file + uses: dagger/doc_copy_action@main + env: + API_TOKEN_GITHUB: ${{ secrets.DAGGERCI_TOKEN }} + with: + source_file: "doc/" + destination_repo: "dagger/launch.dagger.io" + destination_folder: "site/doc" + user_email: "noreply@dagger.io" + user_name: "dagger-bot"