johnbeynon / render-deploy-action

A Github Action for trigging a deploy of a Render service.
42 stars 11 forks source link

Usage example is not correct #3

Closed iamgiolaga closed 1 year ago

iamgiolaga commented 2 years ago

Hi,

I spent a while figuring out how to use this action because the syntax was formally not correct. I would propose something like this

name: My Deploy

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Deploy to production
        uses: johnbeynon/render-deploy-action@v0.0.8
        with:
          service-id: ${{ secrets.MY_RENDER_SERVICE_ID }}
          api-key: ${{ secrets.MY_RENDER_API_KEY }}

the major thing missing was the version

iamalbinnj commented 1 year ago

Can you tell me what is service-id

iamgiolaga commented 1 year ago

Can you tell me what is service-id

Hi @iamalbinnj 👋🏻 Nothing that special, it's simply the name of the web service you have created on Render. I guess it's named "id" because the name itself is a unique identifier.