Skip to content

Fix Docusaurus deployment to use HTTPS #5

Fix Docusaurus deployment to use HTTPS

Fix Docusaurus deployment to use HTTPS #5

Workflow file for this run

name: Deploy Docusaurus to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: write # Grants GitHub Actions write access to the repo
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false # Prevents SSH key issues
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build Docusaurus site
run: yarn build
- name: Deploy to GitHub Pages
env:
GIT_USER: github-actions[bot]
USE_SSH: false
GIT_URL: https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/blacksky-algorithms/blacksky-algorithms.github.io.git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git remote set-url origin $GIT_URL
yarn deploy