Skip to content

Commit

Permalink
GitHub Pages: Use GitHub Actions source
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbernius committed Dec 16, 2022
1 parent aa343a2 commit ef2dc83
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ on:
types:
- created

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:

docs:
Expand All @@ -27,17 +33,19 @@ jobs:
with:
docs-folder: "docs/"
build-command: make html dirhtml
- uses: actions/upload-artifact@v3
- uses: actions/upload-pages-artifact@v1
with:
name: Documentation
path: docs/_build/html/

- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/dirhtml/
user_name: 'artemis-bot'
user_email: '[email protected]'
full_commit_message: ${{ github.event.head_commit.message }}
cname: docs.artemis.cit.tum.de
if: github.ref == 'refs/heads/develop'

# Deployment job
deploy:
if: github.ref == 'refs/heads/develop'
environment:
name: github-pages
url: docs.artemis.cit.tum.de
runs-on: ubuntu-latest
needs: docs
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit ef2dc83

Please sign in to comment.