Skip to content

mrdarrengriffin - push - 2f10f126c4911f6ce384186034cfc5be1d7fbd1d #30

mrdarrengriffin - push - 2f10f126c4911f6ce384186034cfc5be1d7fbd1d

mrdarrengriffin - push - 2f10f126c4911f6ce384186034cfc5be1d7fbd1d #30

name: Deploy to Zendesk
run-name: ${{ github.actor }} - ${{ github.event_name }} - ${{ github.sha }}
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy-to-zendesk:
runs-on: ubuntu-latest
steps:
- name: Check out files from GitHub
uses: actions/checkout@v4.2.2
- name: Setting up Node.js
uses: actions/setup-node@v4.2.0
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm install
- name: Deploy to Zendesk via REST API
env:
ZENDESK_API_USER: ${{ secrets.ZENDESK_API_USER }}
ZENDESK_API_TOKEN: ${{ secrets.ZENDESK_API_TOKEN }}
run: |
touch .env
echo ZENDESK_API_USER=$ZENDESK_API_USER >> .env
echo ZENDESK_API_TOKEN=$ZENDESK_API_TOKEN >> .env
node content/deploy.js
- name: Deploy images to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: $
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: assets/images