-
Notifications
You must be signed in to change notification settings - Fork 1
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: Refactor workflow file to build and publish Documentation website and Storybook simultaneously #1258
Merged
Conversation
This file contains 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
drikusroor
had a problem deploying
to
github-pages
September 10, 2024 08:10
— with
GitHub Actions
Failure
drikusroor
temporarily deployed
to
github-pages
September 10, 2024 08:12
— with
GitHub Actions
Inactive
drikusroor
temporarily deployed
to
github-pages
September 10, 2024 08:16
— with
GitHub Actions
Inactive
drikusroor
temporarily deployed
to
github-pages
September 10, 2024 08:22
— with
GitHub Actions
Inactive
drikusroor
temporarily deployed
to
github-pages
September 10, 2024 08:30
— with
GitHub Actions
Inactive
drikusroor
temporarily deployed
to
github-pages
September 10, 2024 08:42
— with
GitHub Actions
Inactive
drikusroor
changed the title
CI: Refactor workflow file to build and publish docs and Storybook simultaneously
CI: Refactor workflow file to build and publish Documentation website and Storybook simultaneously
Sep 10, 2024
drikusroor
added
documentation
Improvements or additions to documentation
Infrastructure
Relates to deployment or testing
labels
Sep 10, 2024
drikusroor
temporarily deployed
to
github-pages
September 10, 2024 08:43
— with
GitHub Actions
Inactive
Evert-R
approved these changes
Sep 10, 2024
BeritJanssen
approved these changes
Sep 10, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
drikusroor
temporarily deployed
to
github-pages
September 10, 2024 13:25
— with
GitHub Actions
Inactive
…directory for generated pages
…directory for generated pages
drikusroor
force-pushed
the
docs/deploy-api-docs-storybook-pages
branch
from
September 23, 2024 09:06
2b7156d
to
3d004b3
Compare
drikusroor
temporarily deployed
to
github-pages
September 23, 2024 11:33
— with
GitHub Actions
Inactive
drikusroor
temporarily deployed
to
github-pages
September 23, 2024 11:46
— with
GitHub Actions
Inactive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
documentation
Improvements or additions to documentation
Infrastructure
Relates to deployment or testing
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.
This pull request refactors the workflow file to build and publish both the documentation and Storybook simultaneously.
Instead of directly artifacting and deploying the
frontend/storybook-static
directory, the workflow is now configured to create and use thedocs-pages
directory in the root of the repository which gets published to Github Pages. Storybook is then configured to publish its build intodocs-pages/storybook
and update its internal links (config.base
) to be prefixed with/MUSCLE/storybook/
(MUSCLE
is this repository's Github Pages' path,storybook
is the subdirectory of storybook)I've created a dummy
index.html
with a link to the Storybook site that shows that it works: https://amsterdam-music-lab.github.io/MUSCLE. This should probably removed when the Documentation website is integrated into this workflow. So, remove these lines:MUSCLE/.github/workflows/docs.yml
Lines 31 to 35 in c15fe45
New directory / file structure for Github Pages
Important to know:
Currently, the workflow is configured to deploy for this branch too (besides
develop
) in order to test the updated workflow.See the commented out condition for
refs/heads/develop
here:MUSCLE/.github/workflows/docs.yml
Lines 59 to 62 in c15fe45
If I'm on vacation and @Evert-R wants to test the Documentation website being deployed to Github Pages correctly, it's probably a good idea to leave this turned on until we can verify it works as expected. BUT, Github Pages doesn't just publish from every git branch as there is a protection layer. So if you are trying to test your branch to be deployed correctly, you have to add your branch here (Settings > Environments > github-pages > Deployment tags & branches): https://github.com/Amsterdam-Music-Lab/MUSCLE/settings/environments/1801563345/edit