Skip to content

deploy-docs-dev fails silentlyΒ #1391

Description

@inimaz

πŸ” Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

I think this is a corner case. The moment I added the deploy-docs-pr to the ci, the deploy-docs-dev fails with Error: Process completed with exit code 1. and no logs as for why.

πŸ“ Steps to reproduce

  • doc-build + deploy-docs-dev works.
  • doc-build + deploy-docs-pr + deploy-docs-dev does not work.

Script to reproduce the issue

name: GitHub CI
on:
  pull_request:
  workflow_dispatch:
  push:
    tags:
      - "*"
    branches:
      - main
env:
  MAIN_PYTHON_VERSION: '3.11'
  DOCUMENTATION_CNAME: example.com

jobs:

  docs-build:
    name: Building Documentation
    runs-on: ubuntu-latest

    steps:
      - name: Build documentation
        uses: ansys/actions/doc-build@a5b0351dc277d68c2dc1beca2d2674c7dfa4fc55 # v10.3.3
        with:
          python-version: ${{ env.MAIN_PYTHON_VERSION }}
          group-dependencies-name: "doc"
          skip-dependencies-cache: true

  deploy-docs-pr:
    name: Deploy PR docs
    runs-on: ubuntu-latest
    needs: docs-build
    if: github.event_name == 'pull_request'
    permissions:
      contents: write
      pull-requests: write
    steps:
      - name: Checkout repository
        uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
      - name: Deploy PR documentation
        uses: ansys/actions/doc-deploy-pr@a5b0351dc277d68c2dc1beca2d2674c7dfa4fc55 # v10.3.3
        with:
          cname: ${{ env.DOCUMENTATION_CNAME }}
          token: ${{ secrets.GITHUB_TOKEN }}
          bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
          bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}

  deploy-docs-dev:
    name: Deploy development docs (on main branch)
    runs-on: ubuntu-latest
    needs: docs-build
    if: github.ref == 'refs/heads/main'
    permissions:
      contents: write
    steps:
      - name: Checkout repository
        uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
      - name: Deploy development documentation
        uses: ansys/actions/doc-deploy-dev@a5b0351dc277d68c2dc1beca2d2674c7dfa4fc55 # v10.3.3
        with:
          cname: ${{ env.DOCUMENTATION_CNAME }}
          token: ${{ secrets.GITHUB_TOKEN }}
          bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
          bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}

πŸ’» Which operating system are you using?

Windows

πŸ“€ Which ANSYS version are you using?

No response

🐍 Which Python version are you using?

3.10

πŸ“¦ Installed packages

Not related.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDefects or glitches reported by users or developers

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions