docs cleanup: custom action #168
Copy link
Copy link
Closed
Labels
automationcommunity:infrastructureGeneral Score infrastructure topicsGeneral Score infrastructure topicsdocs-as-codegood first issueGood for newcomersGood for newcomers
Description
In order to deploy pull request previews:
- We currently have a custom action extracted as a separate file at https://github.com/eclipse-score/score/tree/main/.github/actions/deploy-versioned-pages
- The idea was to make it fully independent like this: https://github.com/AlexanderLanin/versioned-pages
- But potentially this can completely replace our approach: https://github.com/rossjrw/pr-preview-action
Scope of issue:
- understand whether pr-preview-action is a viable alternative to our custom action
- implement the change
Reference: hint by @netomi at eclipse-score/.eclipsefdn#11
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
automationcommunity:infrastructureGeneral Score infrastructure topicsGeneral Score infrastructure topicsdocs-as-codegood first issueGood for newcomersGood for newcomers
Type
Projects
- StatusShow more project fieldsDone
Activity
dcalavrezo-qorix commentedon Jan 29, 2025
While pr-preview-action focuses on PR previews, our current action includes a versions file to track deployed versions.
Since maintaining a list of all deployed versions is crucial (for traceability purposes and not only), we should implement an additional mechanism alongside pr-preview-action or we should make a comparison between deploy-version-pages and pr-preview-action and focus on improving our own action
dcalavrezo-qorix commentedon Jan 29, 2025
Focusing on the differences between the two actions and ways to improve our implementation for a consolidated result
AlexanderLanin commentedon Jan 29, 2025
The idea of the version file is actually to enable front-end switching of the shown version, see #250 (just created)
AlexanderLanin commentedon Jan 29, 2025
Oh and I looked into creating a full blown JavaScript action a little while ago, which seems to be the gold standard. But back then I concluded that it was too much effort / overhead. Especially for the very first initial setup it was easier without JavaScript and custom logic, but simply combining exiting actions.
Maybe you can provide an independent opinion?
https://github.com/AlexanderLanin/versioned-pages
dcalavrezo-qorix commentedon Jan 31, 2025
Current behavior
Short review of our current action deploy-version-pages:
Potential issues
AlexanderLanin commentedon Jan 31, 2025
docs: allow publishing docs from forked PRs