Skip to content

Commit 7c39eae

Browse files
committed
Update ci-docs.yaml
1 parent fe0b6b1 commit 7c39eae

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

.github/workflows/ci-docs.yaml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,6 @@ jobs:
2727
- name: Build docs
2828
run: |
2929
make docs-build
30-
# push to netlify -------------------------------------------------------
31-
# set release name ----
32-
33-
- name: Configure pull release name
34-
if: ${{github.event_name == 'pull_request'}}
35-
run: |
36-
echo "RELEASE_NAME=pr-${PR_NUMBER}" >> $GITHUB_ENV
37-
env:
38-
PR_NUMBER: ${{ github.event.number }}
39-
- name: Configure branch release name
40-
if: ${{github.event_name != 'pull_request'}}
41-
run: |
42-
# use branch name, but replace slashes. E.g. feat/a -> feat-a
43-
echo "RELEASE_NAME=${GITHUB_REF_NAME/\//-}" >> $GITHUB_ENV
44-
# deploy ----
4530
- name: Create Github Deployment
4631
uses: bobheadxi/deployments@v1
4732
id: deployment
@@ -54,22 +39,6 @@ jobs:
5439
transient: true
5540
logs: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
5641

57-
- name: Netlify docs preview
58-
if: ${{ !github.event.pull_request.head.repo.fork }}
59-
run: |
60-
npm install -g netlify-cli
61-
# push main branch to production, others to preview --
62-
netlify link --name="pointblank"
63-
if [ "${ALIAS}" == "main" ]; then
64-
netlify deploy --dir=docs/_site --alias="main"
65-
else
66-
netlify deploy --dir=docs/_site --alias="${ALIAS}"
67-
fi
68-
env:
69-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
70-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
71-
ALIAS: ${{ steps.deployment.outputs.env }}
72-
7342
- name: Update Github Deployment
7443
uses: bobheadxi/deployments@v1
7544
if: ${{ !github.event.pull_request.head.repo.fork && always() }}

0 commit comments

Comments
 (0)