Skip to content

Deploy branch to staging environment #1384

Deploy branch to staging environment

Deploy branch to staging environment #1384

Workflow file for this run

---
name: Deploy branch to staging environment
on:
workflow_dispatch:
inputs:
branch_name:
description: "Branch name"
jobs:
create_deployment:
runs-on: ubuntu-latest
steps:
- run: |
curl \
--fail \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.BUMPVERSION_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/deployments \
-d '{
"ref": "${{ github.event.inputs.branch_name }}",
"environment": "stage",
"auto_merge": false,
"description": "${{secrets.DEPLOYMENT_INFO}}"}'