Skip to content

Commit 291ce42

Browse files
committed
Fix Docusaurus deployment to use HTTPS
1 parent b48fc37 commit 291ce42

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/deploy.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66
- main
77

88
permissions:
9-
contents: write # Grants write access to the repo
10-
pages: write # Allows updating GitHub Pages
11-
id-token: write # Required for secure deployments
9+
contents: write # Grants GitHub Actions write access to the repo
10+
pages: write
11+
id-token: write
1212

1313
jobs:
1414
deploy:
@@ -17,7 +17,7 @@ jobs:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
1919
with:
20-
persist-credentials: false # Avoid using SSH keys
20+
persist-credentials: false # Prevents SSH key issues
2121

2222
- name: Set up Node.js
2323
uses: actions/setup-node@v4
@@ -35,8 +35,9 @@ jobs:
3535
env:
3636
GIT_USER: github-actions[bot]
3737
USE_SSH: false
38-
GIT_URL: https://github.com/blacksky-algorithms/blacksky-algorithms.github.io.git
38+
GIT_URL: https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/blacksky-algorithms/blacksky-algorithms.github.io.git
3939
run: |
4040
git config --global user.name "github-actions[bot]"
4141
git config --global user.email "github-actions[bot]@users.noreply.github.com"
42+
git remote set-url origin $GIT_URL
4243
yarn deploy

docusaurus.config.ts

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ const config: Config = {
1616
deploymentBranch: 'main',
1717
onBrokenLinks: 'throw',
1818
onBrokenMarkdownLinks: 'warn',
19-
scripts: [
20-
'USE_SSH=false',
21-
],
2219
// Even if you don't use internationalization, you can use this field to set
2320
// useful metadata like html lang. For example, if your site is Chinese, you
2421
// may want to replace "en" with "zh-Hans".

0 commit comments

Comments
 (0)