mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-01 23:47:39 +08:00
Merge pull request #942 from nagisa77/codex/resolve-conflict-between-deploy-staging-and-deploy-docs
Run docs deployment after staging deploy
This commit is contained in:
9
.github/workflows/deploy-docs.yml
vendored
9
.github/workflows/deploy-docs.yml
vendored
@@ -1,7 +1,11 @@
|
|||||||
name: Deploy Documentation
|
name: Deploy Documentation
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
build-id:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -16,6 +20,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: Log build
|
||||||
|
run: echo "Running documentation deployment from build ${{ inputs.build-id }}"
|
||||||
|
|
||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v1
|
uses: oven-sh/setup-bun@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
8
.github/workflows/deploy-staging.yml
vendored
8
.github/workflows/deploy-staging.yml
vendored
@@ -21,3 +21,11 @@ jobs:
|
|||||||
key: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
script: bash /opt/openisle/deploy-staging.sh
|
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 }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user