This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
Merge pull request #10396 from EtherealEngine/project-orgnames #462
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy IR Engine | |
on: | |
push: | |
branches: [dev, int, stg] | |
paths-ignore: | |
- '**/*.md' | |
- '.*ignore' | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: Evironment to Deploy | |
required: true | |
type: choice | |
options: | |
- dev | |
- int | |
- stg | |
env: | |
TARGET_BRANCH_NAME: ${{ github.base_ref || github.ref_name }} | |
jobs: | |
remote-dispatch-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send Remote Dispatch to Deploy IR-Engine | |
run: | | |
curl -H "Authorization: token ${{ secrets.IR_ORG_ACCESS_TOKEN }}" \ | |
-H 'Accept: application/vnd.github.everest-preview+json' \ | |
${{ secrets.IR_ENGINE_OPS_API_URL }} \ | |
-d '{"event_type": "deploy-ir-engine", "client_payload": {"environment": "${{ env.TARGET_BRANCH_NAME }}"}}' |