Skip to content

Commit 9b46097

Browse files
committed
still trying
1 parent 7d59bb2 commit 9b46097

File tree

1 file changed

+38
-33
lines changed

1 file changed

+38
-33
lines changed

.github/workflows/ci-test.yml

Lines changed: 38 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -117,41 +117,46 @@ jobs:
117117
name: ${{ env.REPOSITORY_NAME }}-${{ matrix.python-version }}-${{ matrix.host-os }}-docs
118118
path: docs/build/html/
119119

120-
publish-docs:
121-
if: github.repository_owner == 'NSLS-II' && github.ref == 'refs/heads/master'
122-
name: Publish docs
123-
needs: test
124-
runs-on: ${{ matrix.host-os }}
125-
strategy:
126-
matrix:
127-
python-version: ["3.10"]
128-
host-os: ["ubuntu-latest"]
129-
fail-fast: false
130-
131-
steps:
132-
- name: Set env vars
133-
run: |
134-
export REPOSITORY_NAME=${GITHUB_REPOSITORY#*/} # just the repo, as opposed to org/repo
135-
echo "REPOSITORY_NAME=${REPOSITORY_NAME}" >> $GITHUB_ENV
136-
137-
- name: Download docs from GitHub artifacts
138-
uses: actions/download-artifact@v4
120+
- name: Deploy
121+
uses: peaceiris/actions-gh-pages@v4
139122
with:
140-
name: ${{ env.REPOSITORY_NAME }}-${{ matrix.python-version }}-${{ matrix.host-os }}-docs
141-
path: docs/build/html/
142-
143-
- name: Deploy documentation to nsls-ii.github.io
144-
# We pin to the SHA, not the tag, for security reasons.
145-
# https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
146-
uses: peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501 # v3.7.3
147-
with:
148-
deploy_key: ${{ secrets.ACTIONS_DOCUMENTATION_DEPLOY_KEY }}
149-
publish_branch: master
123+
github_token: ${{ secrets.GITHUB_TOKEN }}
150124
publish_dir: ./docs/build/html
151-
external_repository: NSLS-II/NSLS-II.github.io
152-
destination_dir: ${{ env.REPOSITORY_NAME }} # just the repo name, without the "NSLS-II/"
153-
keep_files: true # Keep old files.
154-
force_orphan: false # Keep git history.
125+
126+
# # if: github.repository_owner == 'NSLS-II' && github.ref == 'refs/heads/master'
127+
# name: Publish docs
128+
# needs: test
129+
# runs-on: ${{ matrix.host-os }}
130+
# strategy:
131+
# matrix:
132+
# python-version: ["3.10"]
133+
# host-os: ["ubuntu-latest"]
134+
# fail-fast: false
135+
136+
# steps:
137+
# - name: Set env vars
138+
# run: |
139+
# export REPOSITORY_NAME=${GITHUB_REPOSITORY#*/} # just the repo, as opposed to org/repo
140+
# echo "REPOSITORY_NAME=${REPOSITORY_NAME}" >> $GITHUB_ENV
141+
142+
# - name: Download docs from GitHub artifacts
143+
# uses: actions/download-artifact@v4
144+
# with:
145+
# name: ${{ env.REPOSITORY_NAME }}-${{ matrix.python-version }}-${{ matrix.host-os }}-docs
146+
# path: docs/build/html/
147+
148+
# - name: Deploy documentation to nsls-ii.github.io
149+
# # We pin to the SHA, not the tag, for security reasons.
150+
# # https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
151+
# uses: peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501 # v3.7.3
152+
# with:
153+
# deploy_key: ${{ secrets.ACTIONS_DOCUMENTATION_DEPLOY_KEY }}
154+
# publish_branch: master
155+
# publish_dir: ./docs/build/html
156+
# external_repository: NSLS-II/NSLS-II.github.io
157+
# destination_dir: ${{ env.REPOSITORY_NAME }} # just the repo name, without the "NSLS-II/"
158+
# keep_files: true # Keep old files.
159+
# force_orphan: false # Keep git history.
155160

156161
publish-to-pypi:
157162
# Hints from:

0 commit comments

Comments
 (0)