Skip to content

Commit

Permalink
fix: main branch docs (#21)
Browse files Browse the repository at this point in the history
* fix: main branch docs
  • Loading branch information
Lewiscowles1986 authored Mar 31, 2024
1 parent f17d7d6 commit ab1f0ac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: documentation

on: [push, pull_request, workflow_dispatch]
on:
pull_request:
push:
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
Expand All @@ -27,17 +32,18 @@ jobs:
id: extract_branch
- name: Deploy to GitHub Pages (branch)
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' }}
if: ${{ github.event_name != 'push' && github.ref != 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
destination_dir: branch/${{ steps.extract_branch.outputs.branch }}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
destination_dir: /
destination_dir: ./
keep_files: true
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- published

concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
Expand Down

0 comments on commit ab1f0ac

Please sign in to comment.