PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
199 stars 231 forks source link

Update book.yml #3243

Closed Sweetdevil144 closed 6 months ago

Sweetdevil144 commented 6 months ago

Update GitHub Actions Workflow for Documentation Deployment

Priority: High
Status: Ready for Review
Type: Bugfix

I do not have permission to select labels. I would like the labels "bug", "documentation", and "CI/CD" to be added.

Description

This PR updates the book.yml GitHub Actions workflow to fix an issue with the deployment of our documentation. The previous version of the workflow incorrectly identified branches as tags, leading to a misconfigured deployment process. Changes include:

Motivation and Context

The current workflow is causing unnecessary directories to be created in our documentation repository, leading to clutter and confusion. This change is required to streamline our CI/CD process and make sure that only the necessary directories are created and maintained.

This PR addresses the workflow misconfiguration discussed in issue #3152 .


Review Time Estimate

Types of changes

Checklist:

Sweetdevil144 commented 6 months ago

PR breaks down the workflow. Test suites fail for the current workflow. I guess this was due to book.yml and would like to know how to proceed. I'm looking at the logs now. Would love ANY kind of help!!

infotroph commented 6 months ago

@Sweetdevil144 I don't think these CI failures are related to your changes -- we've been fighting intermittent failures that I think are related to an out-of-date build image. I'm debugging the CI issues on my end and will review your changes once I've worked those out. Sorry for the wait.

Sweetdevil144 commented 6 months ago

Yeah sure. I can help you with that too if I can. Can you mention the workflows that are causing it?

Sweetdevil144 commented 6 months ago

This is how the current changes look like :

    # ...
    # download documentation repo
    - name: Checkout documentation repo
      if: github.event_name == 'push'
      uses: actions/checkout@v3
      # ... rest of the step
    # upload new documentation
    - name: publish to github
      if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
      run: |
        # ... rest of the step
Sweetdevil144 commented 6 months ago

Hey @infotroph, I found many redundancies n the documentation. Can I correct some of them via this PR?

infotroph commented 6 months ago

@Sweetdevil144 Better to make a separate PR so that we can get this one finished and merged, but yes to doing the corrections!