-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (52 loc) · 1.59 KB
/
new-action-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
name: Deploy Fusion Bundle to Sandbox with Custom Action
on:
push:
# Adjust this list of branches if you want to use this action
# for PRs and pushes.
branches:
- sandbox
# This action lets you run this Action manually.
workflow_dispatch:
jobs:
new-deployer:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
if: ${{ success() }}
uses: actions/checkout@v4
- name: Configure path
if: ${{ success() }}
run: |
echo "./node_modules/.bin" >> $GITHUB_PATH
echo "$PATH"
# This configures NodeJS for our purposes.
- name: Set up Node
if: ${{ success() }}
uses: actions/setup-node@v4
with:
#### IF YOU NEED TO CHANGE YOUR NODE VERSION, JUST CHANGE THIS NUMBER
node-version: 20
cache: npm
# Installs NodeJS dependencies.
- name: Install dependencies
if: ${{ success() }}
run: |
npm install
# Build the code.
- name: Build the Fusion Bundle
if: ${{ success() }}
run: |
fusion build
fusion zip --rename fusion-bundle
- name: Perform the deploy
if: ${{ success() }}
uses: arcxp/deploy-action@1-provide-finer-control-over-the-phases-of-a-bundle-deployment
with:
org-id: arctesting2
api-key: "${{ secrets.SANDBOX_DEPLOYER_TOKEN }}"
api-hostname: api.sandbox.arctesting2.arcpublishing.com
pagebuilder-version: 4.1.2
bundle-prefix: action-demo-1
deploy: true
promote: false