Skip to content

fix: only compress content inside html folder - #507

Merged
RobPasMue merged 1 commit into
mainfrom
fix/only-zip-html-content
Jun 17, 2024
Merged

RobPasMue merged 1 commit into
mainfrom
fix/only-zip-html-content

Conversation

@RobPasMue

Copy link
Copy Markdown
Member

Current Windows implementation was zipping the entire "doc/build..." folder structure. We are only interested in the contents inside the "html" folder

@RobPasMue RobPasMue self-assigned this Jun 17, 2024
@RobPasMue
RobPasMue requested a review from a team as a code owner June 17, 2024 07:26
@ansys-reviewer-bot

Copy link
Copy Markdown
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

@RobPasMue
RobPasMue requested a review from SMoraisAnsys June 17, 2024 07:26
@RobPasMue

Copy link
Copy Markdown
Member Author

Requesting specific review from @SMoraisAnsys

@github-actions github-actions Bot added the bug Defects or glitches reported by users or developers label Jun 17, 2024

@SMoraisAnsys SMoraisAnsys left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks for noticing this behavior !
I think we could also use Compress-Archive -Path ${{ env.EXPECTED_BUILD_DIR }}\html\* -DestinationPath documentation-html.zip but you solutions works fine !

@RobPasMue

Copy link
Copy Markdown
Member Author

LGTM, thanks for noticing this behavior ! I think we could also use Compress-Archive -Path ${{ env.EXPECTED_BUILD_DIR }}\html\* -DestinationPath documentation-html.zip but you solutions works fine !

I tried to be as little invasive as possible with my change - I figured that if you used "zip" directly it was for a reason. Honestly, I'd even delegate all this to the zip action we typically use https://github.com/vimtor/action-zip

@RobPasMue
RobPasMue merged commit 4a1a600 into main Jun 17, 2024
@RobPasMue
RobPasMue deleted the fix/only-zip-html-content branch June 17, 2024 09:12
@SMoraisAnsys

Copy link
Copy Markdown
Contributor

LGTM, thanks for noticing this behavior ! I think we could also use Compress-Archive -Path ${{ env.EXPECTED_BUILD_DIR }}\html\* -DestinationPath documentation-html.zip but you solutions works fine !

I tried to be as little invasive as possible with my change - I figured that if you used "zip" directly it was for a reason. Honestly, I'd even delegate all this to the zip action we typically use https://github.com/vimtor/action-zip

I saw zip being used in other actions and/or repos so I went for it. I would also have used https://github.com/vimtor/action-zip otherwise :')

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

Labels

bug Defects or glitches reported by users or developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants