Skip to content

Commit

Permalink
Try gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
j1c committed Apr 7, 2024
1 parent 194f71b commit 7eea64c
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/build.yml
@@ -1,13 +1,20 @@
name: m2g Build
on:
push:
branches-ignore:
branches:
- "deploy"
- "main"
pull_request:
workflow_call:

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

jobs:
build-reference-documentation:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -21,18 +28,22 @@ jobs:
pip install -U pip setuptools wheel
pip install -r docs/requirements.txt
sphinx-build -a docs/ docs/_build/html
- name: Archive documentation version artifact
uses: actions/upload-artifact@v4
with:
name: dependencies
path: |
dependencies_documentation.txt
- name: Archive documentation artifacts
uses: actions/upload-artifact@v4
with:
name: documentation-site
path: |
docs/_build/html
path: docs/_build/html

# Deployment job
deploy:
runs-on: ubuntu-latest
steps:
- name: "GitHub Pages action"
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html

code-format-check:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 7eea64c

Please sign in to comment.