Skip to content

Commit

Permalink
Create deploy_docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-fiorito-11 authored Jul 7, 2023
1 parent d3daf89 commit 6e53f7a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Docs deployment

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
deployment:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: install general python dependencies
run: pip install sphinx sphinx_rtd_theme
- name: make docs
run: sphinx-build . _build/html -b html
- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: _build/html
destination-github-username: 'luca-fiorito-11'
destination-repository-name: 'sandy-docs'
user-email: [email protected]
commit-message: pushing docs...
target-branch: gh-pages

0 comments on commit 6e53f7a

Please sign in to comment.