Skip to content

Commit 10bf708

Browse files
authored
Merge pull request #37 from scylladb/revert-34-publish-manual-scripts
Revert "docs: add scripts publish docs.scylladb.com/manual"
2 parents cb7810e + 159b031 commit 10bf708

File tree

7 files changed

+21
-122
lines changed

7 files changed

+21
-122
lines changed

.github/workflows/docs-manual.yaml

-46
This file was deleted.

.github/workflows/docs-pages.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
name: "Docs / Publish docs.scylladb.com"
1+
name: "Docs / Publish"
22
# For more information,
33
# see https://sphinx-theme.scylladb.com/stable/deployment/production.html#available-workflows
44

55
on:
66
push:
77
branches:
88
- main
9+
- 'branch-**'
910
paths:
1011
- "docs/**"
1112
workflow_dispatch:
@@ -31,6 +32,6 @@ jobs:
3132
- name: Build redirects
3233
run: make -C docs redirects
3334
- name: Deploy docs to GitHub Pages
34-
run: ./scripts/deploy_pages.sh
35+
run: ./docs/_utils/deploy.sh
3536
env:
3637
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitmodules

-3
This file was deleted.

docs/_utils/deploy.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
# Copy contents
4+
mkdir gh-pages
5+
cp -r ./docs/_build/dirhtml/. gh-pages
6+
7+
# Create gh-pages branch
8+
cd gh-pages
9+
git init
10+
git config --local user.email "[email protected]"
11+
git config --local user.name "GitHub Action"
12+
git remote add origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
13+
git checkout -b gh-pages
14+
15+
# Deploy
16+
git add .
17+
git commit -m "Publish docs" || true
18+
git push origin gh-pages --force

scripts/deploy_manual.sh

-36
This file was deleted.

scripts/deploy_pages.sh

-34
This file was deleted.

submodules/scylladb

-1
This file was deleted.

0 commit comments

Comments
 (0)