Skip to content

Commit

Permalink
always run docs
Browse files Browse the repository at this point in the history
  • Loading branch information
glatteis committed Nov 7, 2024
1 parent 9401bb3 commit af0904c
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Docs

on:
# Runs on pushes targeting the default branch and pull requests.
push:
branches: [main]
pull_request:
types: [opened, reopened]
on: [push]

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
Expand Down Expand Up @@ -67,15 +62,17 @@ jobs:
- name: Generate docs
working-directory: docs/
run: make html

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "docs/_build/html/"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v5

- name: Upload artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: "docs/_build/html/"

- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit af0904c

Please sign in to comment.