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

ci: Use built docs in Deploy job, use single file #221

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

jajik
Copy link
Contributor

@jajik jajik commented Oct 14, 2024

The deployment can use the ci artifact directly instead of building again (it needs to be in the same file, but that seems like an acceptable change).

@jajik jajik added the github_actions Pull requests that update GitHub Actions code label Oct 14, 2024
@jajik jajik requested a review from rhusar October 14, 2024 11:07
@rhusar
Copy link
Member

rhusar commented Oct 14, 2024

Good idea, the price we pay is this ugliness on every PR:

image

@jajik
Copy link
Contributor Author

jajik commented Oct 14, 2024

That's fine by me 🤷‍♂️ (I'm more concerned with the ugly if in the .yml file 😄 but I won't look at it unless something breaks or so...)

@rhusar
Copy link
Member

rhusar commented Oct 14, 2024

Ironically, I have been trying to move away from having a single workflow for PR and upstream/main since they have different scopes (deploy, publish snapshot, publis javadoc, etc).

This will also break the icon in README and the link (https://github.com/modcluster/docs.modcluster.io/actions/workflows/deploy.yml) but I will fix that.

Copy link
Member

@rhusar rhusar left a comment

Choose a reason for hiding this comment

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

Let's try this!

@rhusar rhusar merged commit 3a7fa36 into modcluster:main Oct 14, 2024
2 checks passed
@jajik jajik deleted the build-once branch October 14, 2024 12:58
@rhusar
Copy link
Member

rhusar commented Oct 14, 2024

Ironically, I have been trying to move away from having a single workflow for PR and upstream/main since they have different scopes (deploy, publish snapshot, publis javadoc, etc).

This will also break the icon in README and the link (https://github.com/modcluster/docs.modcluster.io/actions/workflows/deploy.yml) but I will fix that.

Fixed the link - bffc3ed

@rhusar
Copy link
Member

rhusar commented Oct 14, 2024

@jajik Are you sure this works? because it doesn't - https://github.com/modcluster/docs.modcluster.io/actions/runs/11328040976

@jajik
Copy link
Contributor Author

jajik commented Oct 14, 2024

Well, I wanted to preserve the deploy.yml file, but it is required to have one action without dependencies in each file...

@rhusar
Copy link
Member

rhusar commented Oct 14, 2024

I think you misunderstood what 'needs' actually does in GHA..

@jajik
Copy link
Contributor Author

jajik commented Oct 14, 2024

Nope, the checkout is missing because I did not realize the gh-pages stuff needs that.

@jajik
Copy link
Contributor Author

jajik commented Oct 14, 2024

I'll fix it after a meeting

@rhusar
Copy link
Member

rhusar commented Oct 14, 2024

Nope, the checkout is missing because I did not realize the gh-pages stuff needs that.

Right - the 'deploy' job just doesn't have the checkout nor nothing else from the 'ci' job for that matter..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants