From 3adeb864f72bbb777dd01a38de6e48b5fef779b3 Mon Sep 17 00:00:00 2001 From: Simon Hengel Date: Thu, 6 Jul 2023 16:53:32 +0700 Subject: [PATCH] Update .github/workflows/publish.yml --- .github/workflows/publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b940d4a..e2bdd52 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,8 @@ name: Publish documentation on: + repository_dispatch: + types: ["publish"] workflow_dispatch: inputs: ref: @@ -27,7 +29,7 @@ jobs: - uses: actions/checkout@v3 with: repository: hspec/hspec - ref: ${{ inputs.ref }} + ref: ${{ inputs.ref || 'main' }} - uses: actions/upload-pages-artifact@v1 with: path: doc/_site/