Skip to content

Commit

Permalink
update with custom
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirMardan committed Mar 28, 2024
1 parent 49740a0 commit 9f39885
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,39 +23,45 @@ concurrency:

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
build_docs_job:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Set up Python
uses: actions/setup-python@v2.2.1
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install -U sphinx nbsphinx recommonmark
python -m pip install sphinx-rtd-theme
- name: make the sphinx docs
run: |
make -C docs clean
make -C docs html
- name: Init new repo in dist folder and commit
run: |
cd docs/_build/html/
cd docs/build/html/
git init
touch .nojekyll
git add -A
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m 'deploy'
git config --global --add safe.directory /github/workspace/docs/_build/html
- name: Force push to destination branch
uses: ad-m/github-push-action@v0.5.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: ./docs/_build/html

github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: ./docs/_build/html

0 comments on commit 9f39885

Please sign in to comment.