Skip to content

Commit

Permalink
Setup Action build for docs to only run when changes are made in docs…
Browse files Browse the repository at this point in the history
… folder
  • Loading branch information
Mahinkumar committed Oct 29, 2024
1 parent 667fec8 commit 24d304d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Deploy VitePress site to Pages

on:
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
# using the `master` branch as the default branch.
#Runs only when push contains files in /docs folder
push:
branches: [main]
paths:
- docs/**

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -24,6 +24,8 @@ concurrency:
jobs:
# Build job
build:
# Runs only on root repository and not on forks
# Update or remove this if you want to host on your own
if: github.repository == 'mahinkumar/Task_assistant'
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 24d304d

Please sign in to comment.