Skip to content

Commit

Permalink
Only update docs with [docs] tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bboonstra committed Oct 20, 2024
1 parent e1cb86c commit 0739641
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
name: Update Docs

on:
# Runs on pushes targeting the default branch
# Runs on pushes targeting the default branch with [docs] in the commit message
push:
branches: ["main"]
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -28,6 +28,7 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[docs]')
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -36,7 +37,6 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload docs
path: 'docs/'
- name: Deploy to GitHub Pages
id: deployment
Expand Down
2 changes: 1 addition & 1 deletion docs/templating.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ document.addEventListener("DOMContentLoaded", function () {
`;

const sidebar = `
<div id="sidebar">
<div id="sidebar" class="collapsed">
<h3>Documentation</h3>
<ul>
<li><a href="/Effortless/docs/setup.html">Setup</a></li>
Expand Down

0 comments on commit 0739641

Please sign in to comment.