How to trigger a manual deployment to Strapi Cloud, from a GitHub action?

Hello,

I am trying to find a way to trigger a (manual) deployment to Strapi Cloud from a Github action. That GitHub action will be executed by a user connected to Strapi cloud.

The HTTP API seems pretty straight forward, yet I could not find a way to get a Strapi Cloud access token, from a GitHub action:

- name: Deploy CMS
  uses: fjogeleit/http-request-action@v1
  with:
    method: POST
    url: https://cloud-api.strapi.io/projects/${{ env.STRAPI_APP_NAME }}/deployments
    bearerToken: ${{ secrets.STRAPI_ACCESS_TOKEN }}

Any suggestion will be appreciated :blush:

Thanks

This topic has been created from a Discord post (1255107463720472576) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

I’ve got the following reply from the Strapi support :smiling_face_with_tear:

At this time we do not have an option to trigger manual deployments via any kind of automated request or other CI/CD platforms.

There are only two options for deployments:

  • Enabling automated deploys when a push is made to a specific branch
  • Manually triggering them via the UI within the Cloud Dashboard

At some point in the future we would like to add public APIs for our users to be able to automate certain actions however we do not have a timeline or even a confirmation that will be built.