Skip to content

Commit

Permalink
Revert "docs: add scripts publish docs.scylladb.com/manual"
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarcia360 authored Jan 14, 2025
1 parent cb7810e commit 159b031
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 122 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/docs-manual.yaml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/docs-pages.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: "Docs / Publish docs.scylladb.com"
name: "Docs / Publish"
# For more information,
# see https://sphinx-theme.scylladb.com/stable/deployment/production.html#available-workflows

on:
push:
branches:
- main
- 'branch-**'
paths:
- "docs/**"
workflow_dispatch:
Expand All @@ -31,6 +32,6 @@ jobs:
- name: Build redirects
run: make -C docs redirects
- name: Deploy docs to GitHub Pages
run: ./scripts/deploy_pages.sh
run: ./docs/_utils/deploy.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

18 changes: 18 additions & 0 deletions docs/_utils/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

# Copy contents
mkdir gh-pages
cp -r ./docs/_build/dirhtml/. gh-pages

# Create gh-pages branch
cd gh-pages
git init
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git remote add origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git checkout -b gh-pages

# Deploy
git add .
git commit -m "Publish docs" || true
git push origin gh-pages --force
36 changes: 0 additions & 36 deletions scripts/deploy_manual.sh

This file was deleted.

34 changes: 0 additions & 34 deletions scripts/deploy_pages.sh

This file was deleted.

1 change: 0 additions & 1 deletion submodules/scylladb
Submodule scylladb deleted from 4260f3

0 comments on commit 159b031

Please sign in to comment.