diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2022-01-31 23:17:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 22:17:41 +0100 |
commit | a8223e03992930bafa6c1a8bd976e9ecd8d8f566 (patch) | |
tree | 6fab141fb3dae3640dbefbd4d0ff3b5c75c4dc3d /.github | |
parent | ed3f436863bde22057dcfd53bcaef559f5aa7f13 (diff) | |
download | pygments-git-a8223e03992930bafa6c1a8bd976e9ecd8d8f566.tar.gz |
CI: Only deploy for upstream (#2036)
* Only deploy for upstream
* Bump versions
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/docs.yaml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 4527d1e7..2fd42f8a 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -10,11 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: - python-version: 3.7 + python-version: "3.10" - name: Checkout Pygments - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Install Sphinx & WCAG contrast ratio run: pip install Sphinx wcag-contrast-ratio - name: Create Pyodide WASM package @@ -28,6 +28,7 @@ jobs: echo -e 'pygments.org\nwww.pygments.org' > _build/dirhtml/CNAME echo 'Automated deployment of docs for GitHub pages.' > _build/dirhtml/README - name: Deploy to repo + if: github.repository_owner == 'pygments' uses: peaceiris/actions-gh-pages@v2.5.0 env: ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} |