Skip to content

Rework website publishing workflow #8837

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

Merged
merged 1 commit into from
May 1, 2020

Conversation

anatoliykmetyuk
Copy link
Contributor

The previous one turned out not to work because GH Actions
lacked permissions to access an external repo from a script.

The new workflow goes in two stages:

  1. Generate website
  2. Publish website

Generate website stage does the following:

  1. Check out the website repo and save all the snapshots
    in a separate directory
  2. Generate the website from the current commit the CI runs
    against
  3. Move the previous snapshots to the output directory of
    the documentation generation run

Publish website step utilizes a 3rd party GitHub Action.

The previous one turned out not to work because GH Actions
lacked permissions to access an external repo from a script.

The new workflow goes in two stages:

1. Generate website
2. Publish website

Generate website stage does the following:

1. Check out the website repo and save all the snapshots
   in a separate directory
2. Generate the website from the current commit the CI runs
   against
3. Move the previous snapshots to the output directory of
   the documentation generation run

Publish website step utilizes a 3rd party GitHub Action.
@anatoliykmetyuk anatoliykmetyuk merged commit da65a1a into scala:master May 1, 2020
@anatoliykmetyuk anatoliykmetyuk deleted the rework-website-2 branch May 1, 2020 10:15
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.

dotty.epfl.ch/docs has been accidentally reverted to 0.23
3 participants