Deploy branch to staging environment #1375
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 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}}"}' |