-
Notifications
You must be signed in to change notification settings - Fork 14
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
chore(releases): add workflow for releasing old documentation #1764
chore(releases): add workflow for releasing old documentation #1764
Conversation
|
Preview environment ready: https://preview-1764--swisspost-web-frontend.netlify.app |
echo "site_id=$site_id" >> $GITHUB_OUTPUT | ||
echo "branch_version=$branch_version" >> $GITHUB_OUTPUT | ||
|
||
# Tries to create a new netlify site. If the site with this version already exists, the job will fail |
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.
We could get around the failing job, if we would use netlify sites:list
first:
https://cli.netlify.com/commands/sites
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Closing as not relevant anymore, will be superseded by a better workflow. |
This workflow takes care of a few things. Old releases live as their own site on netlify. On the current documentation, we redirect e.g. /v4 to the old documentation site. The branch name is important and should always follow the format
release/v[major release]
->release/v3
.Disclaimer: In order to test this workflow, it needs to be on main.