Skip to content

Commit

Permalink
now deploy on branch gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
marcadetd committed Jun 14, 2024
1 parent ab6305e commit 2127dce
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/Build-Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# ** https://riseclipse.github.io
# *************************************************************************

name: Build launcher documentation, deploy it on riseclipse.github.io
name: Build launcher documentation, deploy it on branch gh-pages

on: workflow_dispatch

Expand Down Expand Up @@ -51,16 +51,12 @@ jobs:
run: |
cd ${{ github.event.repository.name }}/fr.centralesupelec.edf.riseclipse.python.launcher/docs
make html
touch _build/html/.nojekyll
- name: Deploy on riseclipse.github.io
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
- name: Deploy on branch gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
source-directory: '${{ github.event.repository.name }}/fr.centralesupelec.edf.riseclipse.python.launcher/docs/_build/html'
destination-github-username: 'riseclipse'
destination-repository-name: 'riseclipse.github.io'
user-email: [email protected]
target-branch: master
target-directory: python-launcher-docs
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: '${{ github.event.repository.name }}/fr.centralesupelec.edf.riseclipse.python.launcher/docs/_build/html'
destination_dir: python-launcher-docs
force_orphan: true
commit_message: 'Update riseclipse-python-launcher-docs'

0 comments on commit 2127dce

Please sign in to comment.