Skip to content

Conversation

Yusyuriv
Copy link
Member

@Yusyuriv Yusyuriv commented Mar 3, 2025

This includes:

  • Smaller main page
  • Plugin store
  • Theme builder

Deployed version can be seen at https://yusyuriv.github.io/fl-website-next/

Required changes

This website is completely pre-rendered during build. Therefore, it needs to be re-built every time a new plugin gets accepted, a plugin updates, or new Flow version is released. This is possible with webhooks. Here's how to do it:

  1. Someone with write (or admin?) access to this (Flow-Launcher/flow-launcher.github.io) repository needs to go to repository settings and create a personal access token. The only permission the token needs is Contents: Read and write.
  2. A webhook will need to be called when some events happen. For convenience, this can also be launched manually with the "Run workflow" button in GitHub Actions UI instead of calling the webhook.
    1. In the plugin manifest repo, if the plugin manifest changes (i.e. a new plugin got accepted or a plugin got updated), call this webhook:
    curl -L \
      -X POST \
      -H "Accept: application/vnd.github+json" \
      -H "Authorization: Bearer <YOUR-TOKEN>" \
      https://api.github.com/repos/<OWNER>/<REPO>/dispatches \
      -d '{"event_type":"deploy"}'
    
    1. The same webhook call needs to be used on new Flow releases.

This includes:
* Smaller main page
* Plugin store
* Theme builder
@Yusyuriv Yusyuriv self-assigned this Mar 3, 2025
@Yusyuriv Yusyuriv marked this pull request as ready for review March 3, 2025 00:36
@Yusyuriv Yusyuriv requested a review from jjw24 March 3, 2025 00:36
@Yusyuriv Yusyuriv marked this pull request as draft March 3, 2025 00:46
@Yusyuriv Yusyuriv marked this pull request as ready for review March 3, 2025 00:54
@Yusyuriv Yusyuriv merged commit 32d53fa into master Mar 8, 2025
1 check passed
@Yusyuriv Yusyuriv deleted the new-website-smaller-and-with-plugin-store-and-theme-builder branch March 8, 2025 06:01
@jjw24 jjw24 added the enhancement New feature or request label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants