Skip to content

Commit 39d4fc0

Browse files
committed
ci: add deploy workflow for OpenDev deployment consumer
1 parent 4ed3982 commit 39d4fc0

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
environment:
7+
description: 'Target environment'
8+
required: true
9+
default: 'staging'
10+
deployment_id:
11+
description: 'OpenDev deployment ID'
12+
required: true
13+
branch:
14+
description: 'Branch to deploy'
15+
required: true
16+
17+
jobs:
18+
deploy:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.event.inputs.branch }}
24+
25+
- name: Deploy to ${{ github.event.inputs.environment }}
26+
run: |
27+
echo "Deploying branch ${{ github.event.inputs.branch }} to ${{ github.event.inputs.environment }}"
28+
echo "Deployment ID: ${{ github.event.inputs.deployment_id }}"
29+
echo "Deploy complete"

0 commit comments

Comments
 (0)