Skip to content

Commit

Permalink
correct netlify preview GA dev status determination step
Browse files Browse the repository at this point in the history
  • Loading branch information
annakrystalli committed Oct 4, 2024
1 parent 91b10f3 commit 593bc6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pkgdown-netlify-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,17 @@ jobs:
folder: docs

- id: deploy-dir
name: Determine dev status
run: |
if [[ $(grep -c -E 'sion. ([0-9]*\.){3}' ${{ github.workspace }}/DESCRIPTION) == 1 ]]; then
echo 'dir=./docs/dev' >> $GITHUB_OUTPUT
else
echo 'dir=./docs' >> $GITHUB_OUTPUT
fi
- name: Deploy PR preview to Netlify
if: contains(env.isPush, 'false')
id: netlify-deploy
uses: nwtgck/actions-netlify@v2
uses: nwtgck/actions-netlify@v3
with:
publish-dir: '${{ steps.deploy-dir.outputs.dir }}'
production-branch: main
Expand Down

0 comments on commit 593bc6d

Please sign in to comment.