File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Forge App to Jira
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ # Checkout the repository
14+ - name : Checkout code
15+ uses : actions/checkout@v4 # https://github.com/actions/checkout
16+
17+ # Set up Node.js
18+ - name : Set up Node.js
19+ uses : actions/setup-node@v4 # https://github.com/actions/setup-node
20+ with :
21+ node-version : " 20" # https://nodejs.org/en
22+
23+ # Install project dependencies
24+ - name : Install dependencies
25+ run : npm install
26+
27+ # Install Forge CLI
28+ - name : Install Forge CLI
29+ run : npm install -g @forge/cli
30+
31+ # Authenticate Forge CLI
32+ # https://developer.atlassian.com/platform/forge/set-up-cicd/#step-2--define-your-login-details-as-variables
33+ - name : Authenticate Forge CLI
34+ run : forge login --email ${{ secrets.FORGE_EMAIL }} --token ${{ secrets.FORGE_API_TOKEN }}
35+
36+ # Enable Forge analytics
37+ # https://developer.atlassian.com/platform/forge/set-up-cicd/#understanding-usage-analytics
38+ - name : Enable Forge analytics
39+ run : forge settings set usage-analytics true
40+
41+ # Run Forge lint
42+ - name : Run Forge lint
43+ run : forge lint --fix
44+
45+ # Deploy Forge App
46+ # https://developer.atlassian.com/platform/forge/staging-and-production-apps/#deploy-to-a-specific-environment
47+ - name : Deploy Forge App
48+ run : forge deploy -e production
49+
50+ # Install Forge app dependencies
51+ - name : Install Forge dependencies
52+ run : forge install -e production
You can’t perform that action at this time.
0 commit comments