Deploy Fusion Bundle to Sandbox with Custom Action #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 | |