Skip to content

Commit

Permalink
chore(gh-action): build eleventy sur push et pr toutes les branches, …
Browse files Browse the repository at this point in the history
…mais gh-pages uniquement push sur main
  • Loading branch information
ocruze committed Jul 18, 2024
1 parent d29d558 commit fefd468
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Sample workflow for building and deploying an Eleventy site to GitHub Pages
name: Deploy Eleventy with GitHub Pages dependencies preinstalled
name: Build & Deploy Eleventy with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -45,6 +45,7 @@ jobs:

deploy-ghpages:
name: Deploy to github pages
if: github.event_name == 'push' && github.ref_name == 'main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit fefd468

Please sign in to comment.