Skip to content

Commit

Permalink
disable netlify deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyAJohnston committed May 16, 2023
1 parent 8ea9189 commit 4e46333
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 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 All @@ -78,4 +78,4 @@ jobs:
if: github.event_name == 'release'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build
publish_dir: docs/_build

0 comments on commit 4e46333

Please sign in to comment.