Skip to content

Commit

Permalink
Delete dev ddocumentation before deployment to force update
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Busetti <[email protected]>
  • Loading branch information
febus982 committed May 4, 2024
1 parent 41b23d1 commit 8f9a091
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/github-pages-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ jobs:
uses: ./.github/workflows/reusable-github-pages.yml
with:
site-version: "dev"
delete-before-deploy: true
10 changes: 10 additions & 0 deletions .github/workflows/reusable-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
required: false
type: boolean
default: false
delete-before-deploy:
required: false
type: boolean
default: false

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
Expand Down Expand Up @@ -60,6 +64,12 @@ jobs:
run: |
git fetch origin gh-pages --depth=1
- name: Delete existing version
if: ${{ inputs.delete-before-deploy }}
continue-on-error: true
run: |
mike delete ${{ inputs.site-version }} --branch ${{ inputs.branch }}
- name: Build and deploy static pages
run: |
mike deploy ${{ inputs.site-version }} ${{ inputs.version-alias }} --update-aliases --push --branch ${{ inputs.branch }}
Expand Down

0 comments on commit 8f9a091

Please sign in to comment.