diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 696cda5ed..2f1dac164 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,7 +1,11 @@ name: Deploy Documentation on: - push: + workflow_call: + inputs: + build-id: + required: false + type: string workflow_dispatch: permissions: @@ -16,6 +20,9 @@ jobs: with: fetch-depth: 1 + - name: Log build + run: echo "Running documentation deployment from build ${{ inputs.build-id }}" + - name: Setup Bun uses: oven-sh/setup-bun@v1 with: diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 46f9b591b..dd0ae25fc 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -21,3 +21,11 @@ jobs: key: ${{ secrets.SSH_KEY }} script: bash /opt/openisle/deploy-staging.sh + deploy-docs: + needs: build-and-deploy + if: ${{ success() }} + uses: ./.github/workflows/deploy-docs.yml + secrets: inherit + with: + build-id: ${{ github.run_id }} +