Skip to content

Commit a370e2f

Browse files
Merge pull request #14 from gitautoai/wes
Add a staging github workflow too
2 parents 5f6bddc + ebfaf42 commit a370e2f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Deploy Forge App to Jira
22

33
on:
4+
pull_request:
5+
branches:
6+
- main
47
push:
58
branches:
69
- main
@@ -47,4 +50,15 @@ jobs:
4750
# Deploy Forge App
4851
# https://developer.atlassian.com/platform/forge/staging-and-production-apps/#deploy-to-a-specific-environment
4952
- name: Deploy Forge App
50-
run: forge deploy -e production
53+
run: |
54+
if [ "${{ github.event_name }}" == "push" ]; then
55+
forge deploy -e production
56+
else
57+
forge deploy -e staging
58+
fi
59+
60+
# Install Forge app dependencies
61+
# https://developer.atlassian.com/platform/forge/cli-reference/install/
62+
- name: Install Forge dependencies
63+
if: github.event_name == 'pull_request'
64+
run: forge install -e staging -s gitauto.atlassian.net --p Jira --upgrade --confirm-scopes --non-interactive --verbose

0 commit comments

Comments
 (0)