diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 3aa9cad..87b94dd 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -42,19 +42,18 @@ jobs: with: push: true tags: ghcr.io/ptah-sh/storyngine:latest,ghcr.io/ptah-sh/storyngine:${{ needs.release-please.outputs.tag_name }} - # TODO: should we create a github deployment? - # deploy: - # runs-on: ubuntu-latest - # needs: - # - release-please - # - build-and-publish - # if: ${{ needs.release-please.outputs.release_created }} - # steps: - # - name: Deploy - # run: | - # curl --fail-with-body -X POST \ - # -H 'Content-Type: application/json' \ - # -H 'Accept: application/json' \ - # -H 'Authorization: Bearer ${{ secrets.PTAH_API_TOKEN }}' \ - # -d '{"processes":[{"name":"svc","dockerImage":"ghcr.io/ptah-sh/storyngine:${{ needs.release-please.outputs.tag_name }}"}]}' \ - # https://ctl.ptah.sh/api/v0/services/3/deploy + deploy: + runs-on: ubuntu-latest + needs: + - release-please + - build-and-publish + if: ${{ needs.release-please.outputs.release_created }} + steps: + - name: Deploy + run: | + curl --fail-with-body -X POST \ + -H 'Content-Type: application/json' \ + -H 'Accept: application/json' \ + -H 'Authorization: Bearer ${{ secrets.PTAH_API_TOKEN }}' \ + -d '{"processes":[{"name":"svc","dockerImage":"ghcr.io/ptah-sh/storyngine:${{ needs.release-please.outputs.tag_name }}"}]}' \ + https://ctl.ptah.sh/api/v0/services/62/deploy