Repository navigation
[Demo] Deploy the demo in a job of its own - #423
Merged
Merged
Conversation
The build exports the runtime token of GitHub Actions to its steps, for the cache of buildx: deploy-pages, in the same job, then finds no artifact on Sylius/Stack. A job of its own, as in GitHub's starter workflow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Demo workflow added in #420 builds and checks the demo on
main, then fails at the last step:deploy-pagesreports "Found 0 artifact(s)" right afterupload-pages-artifactuploadedgithub-pages(see this run). So https://sylius.github.io/Stack/ is still not published.The build exposes the runtime token of GitHub Actions to all its following steps (
crazy-max/ghaction-github-runtime, needed for the buildx cache), anddeploy-pageslists the artifacts with that token in the same job.→ The workflow is split into a
buildjob and adeployjob (needs: build) that only runsdeploy-pages, as in GitHub's Pages starter workflow, with a clean environment.Tried on my fork: both jobs pass. The fork already deployed with one job, though, so the proof for this repository is the first run on
mainafter the merge.BC: none, only the Demo workflow changes.