Skip to content

Commit 2504321

Browse files
ops(KDP): improve release workflow
1 parent cc41dad commit 2504321

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/RELEASE.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
6969
PYPI_PUBLISH:
7070
needs: [SEMANTIC_RELEASE]
71-
if: ${{ needs.SEMANTIC_RELEASE.outputs.release_created == 'true' || inputs.SKIP_RELEASE }}
71+
if: ${{ needs.SEMANTIC_RELEASE.outputs.release_created == 'true' || inputs.SKIP_RELEASE == 'true' }}
7272
runs-on: ubuntu-latest
7373
steps:
7474
- name: Checkout repository
@@ -143,7 +143,7 @@ jobs:
143143

144144
UPDATE_DOCS:
145145
needs: [SEMANTIC_RELEASE, PYPI_PUBLISH]
146-
if: ${{ (needs.SEMANTIC_RELEASE.outputs.release_created == 'true' && !failure('PYPI_PUBLISH')) || inputs.SKIP_RELEASE }}
146+
if: ${{ (needs.SEMANTIC_RELEASE.outputs.release_created == 'true' && !failure('PYPI_PUBLISH')) || inputs.SKIP_RELEASE == 'true' }}
147147
runs-on: ubuntu-latest
148148
steps:
149149
- name: Checkout repository
@@ -206,5 +206,5 @@ jobs:
206206
sleep 10
207207
git pull --rebase
208208
209-
# Use the version from recovery process
210-
mike deploy --push --update-aliases ${{ steps.get_docs_version.outputs.VERSION }} latest
209+
# Use --ignore-remote-status to handle unrelated histories
210+
mike deploy --push --update-aliases --ignore-remote-status ${{ steps.get_docs_version.outputs.VERSION }} latest

0 commit comments

Comments
 (0)