Skip to content

Commit

Permalink
Add a staging github workflow too
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshinishio committed Nov 27, 2024
1 parent 729831f commit ebfaf42
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Deploy Forge App to Jira

on:
pull_request:
branches:
- main
push:
branches:
- main
Expand Down Expand Up @@ -47,4 +50,15 @@ jobs:
# Deploy Forge App
# https://developer.atlassian.com/platform/forge/staging-and-production-apps/#deploy-to-a-specific-environment
- name: Deploy Forge App
run: forge deploy -e production
run: |
if [ "${{ github.event_name }}" == "push" ]; then
forge deploy -e production
else
forge deploy -e staging
fi
# Install Forge app dependencies
# https://developer.atlassian.com/platform/forge/cli-reference/install/
- name: Install Forge dependencies
if: github.event_name == 'pull_request'
run: forge install -e staging -s gitauto.atlassian.net --p Jira --upgrade --confirm-scopes --non-interactive --verbose

0 comments on commit ebfaf42

Please sign in to comment.