Add circleci-artifact-redirector secret #108
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and upload website | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build-and-upload: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install sphinx | |
| - name: Download team list | |
| if: github.ref == 'refs/heads/main' | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TEAM_QUERY_TOKEN }} | |
| run: | | |
| make team | |
| - name: Install SSH Client 🔑 | |
| if: github.ref == 'refs/heads/main' | |
| uses: webfactory/ssh-agent@v0.9.0 | |
| with: | |
| ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY_KEY }} | |
| - name: Build and deploy docs | |
| if: github.ref == 'refs/heads/main' | |
| run: | | |
| git config --global user.email "ci@scikit-image.org" | |
| git config --global user.name "GitHub Actions" | |
| make gh-pages | |
| cd gh-pages | |
| git push origin main |