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

chore(releases): add workflow for releasing old documentation #1764

Conversation

gfellerph
Copy link
Member

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.

  1. Creating a site on netlify for the old release. If the site already exists, this job will fail but the workflow will continue to run
  2. Opening a PR to update the redirects file on the current documentation
  3. Releasing the new old documentation to its netlify site

Disclaimer: In order to test this workflow, it needs to be on main.

@changeset-bot
Copy link

changeset-bot bot commented Aug 8, 2023

⚠️ No Changeset found

Latest commit: 7072bcd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@swisspost-bot
Copy link
Contributor

swisspost-bot commented Aug 8, 2023

Preview environment ready: https://preview-1764--swisspost-web-frontend.netlify.app

@gfellerph gfellerph linked an issue Aug 8, 2023 that may be closed by this pull request
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
Copy link
Contributor

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

.github/workflows/release-old-demo.yaml Show resolved Hide resolved
@gfellerph gfellerph marked this pull request as draft August 9, 2023 12:13
@sonarcloud
Copy link

sonarcloud bot commented Aug 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Aug 25, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@imagoiq imagoiq removed their request for review October 5, 2023 12:01
@gfellerph
Copy link
Member Author

Closing as not relevant anymore, will be superseded by a better workflow.

@gfellerph gfellerph closed this Mar 20, 2024
@gfellerph gfellerph deleted the 1430-workflow-for-releasing-patch-updates-for-older-versions branch March 20, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workflow for releasing patch updates for older versions
3 participants