Skip to content

Commit 68c1795

Browse files
committed
Refactor deployment steps in workflow
Updated GitHub App token action and removed invalid flags from the deployment commands.
1 parent 59ceded commit 68c1795

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ jobs:
8484
steps:
8585
- name: Generate GitHub App Token
8686
id: generate_token
87-
uses: tibdex/github-app-token@v2
87+
uses: actions/create-github-app-token@v3
8888
with:
89-
app_id: ${{ secrets.APP_ID }}
90-
private_key: ${{ secrets.APP_PRIVATE_KEY }}
89+
app-id: ${{ secrets.APP_ID }}
90+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
9191

9292
- name: Checkout Code
9393
uses: actions/checkout@v6
@@ -120,7 +120,7 @@ jobs:
120120
121121
if [ "${{ github.event_name }}" == "release" ]; then
122122
# Release: Create a permanent version folder and update latest alias.
123-
mike deploy --push --rebase --update-aliases "$RELEASE_TAG" latest
123+
mike deploy --push --update-aliases "$RELEASE_TAG" latest
124124
elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
125125
# Manual: Use UI inputs for version and optional alias.
126126
if [[ ! "$MY_VERSION" =~ ^[a-zA-Z0-9._-]+$ ]]; then
@@ -133,11 +133,11 @@ jobs:
133133
fi
134134
135135
if [ -n "$MY_ALIAS" ]; then
136-
mike deploy --push --rebase --update-aliases "$MY_VERSION" "$MY_ALIAS"
136+
mike deploy --push --update-aliases "$MY_VERSION" "$MY_ALIAS"
137137
else
138-
mike deploy --push --rebase "$MY_VERSION"
138+
mike deploy --push "$MY_VERSION"
139139
fi
140140
else
141141
# Push: Update the /main/ folder
142-
mike deploy --push --rebase main
142+
mike deploy --push main
143143
fi

0 commit comments

Comments
 (0)