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

workflows: automatically generate a list of versions on deployment #23

Open
ES-Alexander opened this issue Nov 15, 2024 · 0 comments
Open

Comments

@ES-Alexander
Copy link
Collaborator

ES-Alexander commented Nov 15, 2024

Useful for the theme to be able to know which versions can be switched between.

Could maybe add to standard deployment pipeline, just run every time a new change is merged (a bit excessive, but not that wasteful).

e.g.

 steps:
      - uses: octokit/[email protected]
        id: list_branches
        with:
          route: GET /repos/{owner}/{repo}/branches
          owner: bluerobotics
          repo: BlueOS-docs
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - run: echo "${{ steps.get_latest_release.outputs.data }}" > branches.json
      - run: aws s3 cp branches.json s3://br-www-docs/docs/available-versions.json
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

No branches or pull requests

1 participant