From b1faac2892675c95ff1c2e322afc1803357afdb9 Mon Sep 17 00:00:00 2001 From: Alex Launi Date: Sun, 14 Jan 2024 11:15:23 -0500 Subject: [PATCH] take chatgpts action suggestion without edits (sus) --- .github/workflows/publish.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f6d14df..2a840fd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,6 +23,19 @@ 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: Set Build Command for Non-main Branch + if: contains(github.ref, 'refs/heads/') && !endsWith(github.ref, '/main') + env: + GITHUB_REF_NAME: ${{ github.ref_name }} + run: echo "BUILD_COMMAND=zola build -u ${GITHUB_REF_NAME}.lamalex-github-io.pages.dev" >> $GITHUB_ENV + + - name: Set Build Command for Main Branch + if: endsWith(github.ref, '/main') + run: echo "BUILD_COMMAND=zola build" >> $GITHUB_ENV + + - name: Build site + run: ${{ env.BUILD_COMMAND }} + - name: Build site run: zola build