Skip to content

Commit

Permalink
Fixing conditional hub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
skrawcz committed Sep 29, 2023
1 parent a6c702d commit fd1034c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/docusaurus-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ name: Deploy Docusaurus with GitHub Pages dependencies preinstalled
on:
# Runs on pushes targeting the default branch & contrib subdirectory
push:
branches: ["user_contrib", "main"]
paths:
- 'contrib/**'

Expand All @@ -25,7 +24,7 @@ concurrency:

jobs:
branch-build:
if: GITHUB_REF_NAME != 'main'
if: ${{ github.ref != 'refs/heads/main' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down Expand Up @@ -64,7 +63,7 @@ jobs:
run: yarn build
# 👆 Build steps
deploy:
if: GITHUB_REF_NAME == 'main'
if: ${{ github.ref == 'refs/heads/main' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit fd1034c

Please sign in to comment.