Skip to content

Commit

Permalink
bring back netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyAJohnston committed May 16, 2023
1 parent 4e46333 commit a386d81
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ jobs:
transient: true
logs: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'

# - name: Netlify docs preview
# run: |
# npm install -g netlify-cli
# # push main branch to production, others to preview --
# if [ "${ALIAS}" == "main" ]; then
# netlify deploy --dir=docs/_build --alias="main"
# else
# netlify deploy --dir=docs/_build --alias="${ALIAS}"
# fi
# env:
# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
# ALIAS: ${{ steps.deployment.outputs.env }}
- name: Netlify docs preview
run: |
npm install -g netlify-cli
# push main branch to production, others to preview --
if [ "${ALIAS}" == "main" ]; then
netlify deploy --dir=docs/_build --alias="main"
else
netlify deploy --dir=docs/_build --alias="${ALIAS}"
fi
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
ALIAS: ${{ steps.deployment.outputs.env }}

- name: Update Github Deployment
uses: bobheadxi/deployments@v0.4.3
Expand Down

0 comments on commit a386d81

Please sign in to comment.