HyperPlay-Gaming / hyperplay-desktop-client

The HyperPlay desktop app
https://hyperplay.xyz
GNU General Public License v3.0
77 stars 31 forks source link

[CI] store client artifacts metadata #754

Closed eliobricenov closed 4 months ago

eliobricenov commented 8 months ago

We recently experienced an issue where were intermittently getting an error when we tried to get the latests releases artifacts via Github API: https://api.github.com/repos/HyperPlay-Gaming/hyperplay-desktop-client/releases/latest in the download page.

We could store the metadata of the releases in a different place that we can use as fallback source in case the Github API requests fails.

eliobricenov commented 8 months ago

We can use a Github actions triggered by a release published event:

on:
  release:
    types: [published]

The caveat of doing this is that we'd need to refactor our release workflows and use a single relase.yml file to make sure that the step that pushes the metadata to the storage is always the last.

eliobricenov commented 8 months ago

We could store the metadata as a json file using Supabase storage. We can retrieve it later via the API.

nyghtstalker commented 4 months ago

No longer occurring.