Skip to content

Commit

Permalink
properly deploy on push over gh_pages instead of main ref
Browse files Browse the repository at this point in the history
  • Loading branch information
sdumetz committed Feb 7, 2024
1 parent bb7e430 commit 3083628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ jobs:
--allow-missing-href=true
--log-level :debug
- name: Upload artifact
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/gh_pages' }}
uses: actions/upload-pages-artifact@v1

# Deployment job
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/gh_pages' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit 3083628

Please sign in to comment.