Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoiding upload dev docs when doing releases #1972

Merged
merged 5 commits into from
Apr 12, 2023
Merged

Conversation

germa89
Copy link
Collaborator

@germa89 germa89 commented Apr 5, 2023

While doing v0.64.1 I realise that dev and release documentation are uploaded with the same artefact name, therefore, the artefact get merged and the make pdf generates 2 PDFs.

@github-actions github-actions bot added CI/CD Related with CICD, Github Actions, etc Maintenance General maintenance of the repo (libraries, cicd, etc) BUG Issue, problem or error in PyMAPDL labels Apr 5, 2023
@codecov
Copy link

codecov bot commented Apr 5, 2023

Codecov Report

Merging #1972 (296cade) into main (f32f3c6) will decrease coverage by 0.35%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1972      +/-   ##
==========================================
- Coverage   86.12%   85.78%   -0.35%     
==========================================
  Files          44       44              
  Lines        7914     7914              
==========================================
- Hits         6816     6789      -27     
- Misses       1098     1125      +27     

@germa89
Copy link
Collaborator Author

germa89 commented Apr 6, 2023

LGTM.

Copy link
Collaborator

@pyansys-ci-bot pyansys-ci-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approving this PR because germa89 said so 😬

@germa89 germa89 requested a review from RobPasMue April 6, 2023 00:14
@RobPasMue
Copy link
Member

Interesting. This shouldn't happen because whenever you do a release you should be on the release/* branch, which means that the first part of the if condition is not satisfied... Have you got an example worflow where this occurred?

@germa89
Copy link
Collaborator Author

germa89 commented Apr 10, 2023

@RobPasMue
Copy link
Member

My guess is that this is related to caching issues @germa89

https://github.com/pyansys/pymapdl/blob/8f93fcd810875f378f5f859ef1b27348d7dead2b/.github/workflows/ci.yml#L150-L157

It looks like you are using previously cached directories from the main branch and that's why you are seeing PDFs build from 0.64.1 and 0.65.dev0

I would recommend to either clean the LaTeX build directory first or avoid caching this _build directory.

@germa89
Copy link
Collaborator Author

germa89 commented Apr 10, 2023

I did clean it in the past, and it worked. But what it is surprising is that the cache name depends on the PYMAPDL_VERSION, which is different for both.

I will clean it for now. Let's see how it goes.

Thank you @RobPasMue for having a look! :)

@germa89 germa89 merged commit 79410e4 into main Apr 12, 2023
27 checks passed
@germa89 germa89 deleted the fix/overwriting-artifacts branch April 12, 2023 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Issue, problem or error in PyMAPDL CI/CD Related with CICD, Github Actions, etc Maintenance General maintenance of the repo (libraries, cicd, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants