Skip to content

Commit

Permalink
Only build docs on release
Browse files Browse the repository at this point in the history
Co-authored-by: Adrian D'Alessandro <[email protected]>
  • Loading branch information
alexdewar and AdrianDAlessandro authored Aug 8, 2024
1 parent a2ee5ff commit 43b09d5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions {{ cookiecutter.project_slug }}/.github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Deploy to GitHub Pages

on:
push:
branches: [main]
workflow_dispatch:
release:
types: [published]

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand All @@ -18,8 +17,13 @@ concurrency:
cancel-in-progress: false

jobs:
test:
uses: ./.github/workflows/ci.yml

# Single deploy job since we're just deploying
deploy:
needs: test
timeout-minutes: 15
environment:
name: github-pages
url: ${{ "{{" }} steps.deployment.outputs.page_url {{ "}}" }}
Expand Down

0 comments on commit 43b09d5

Please sign in to comment.