Skip to content

mrdarrengriffin - push - 3a66ad011284072d1ef01a3158b4cd0f183ae647 #33

mrdarrengriffin - push - 3a66ad011284072d1ef01a3158b4cd0f183ae647

mrdarrengriffin - push - 3a66ad011284072d1ef01a3158b4cd0f183ae647 #33

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: main # The branch the action should deploy to.
FOLDER: assets/images