Skip to content

Commit

Permalink
print github.ref and remove double build step
Browse files Browse the repository at this point in the history
  • Loading branch information
lamalex committed Jan 14, 2024
1 parent f077c3a commit 506d7ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
google-chrome --headless --run-all-compositor-stages-before-draw --print-to-pdf-no-header --print-to-pdf=static/alexlauni-resume.pdf http://localhost:1111/cv
kill $ZOLA_PID
- name: Print github.ref (debugging)
run: echo ${{ github.ref }}

- name: Set Build Command for Non-main Branch
if: contains(github.ref, 'refs/heads/') && !endsWith(github.ref, '/main')
env:
Expand All @@ -36,9 +39,6 @@ jobs:
- name: Build site
run: ${{ env.BUILD_COMMAND }}

- name: Build site
run: zola build

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
Expand Down

0 comments on commit 506d7ef

Please sign in to comment.