mrdarrengriffin - push - 35952aabb9414569e521880ff522ffeca52cf094 #29
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 to Zendesk | |
run-name: ${{ github.actor }} - ${{ github.event_name }} - ${{ github.sha }} | |
on: | |
push: | |
branches: | |
- main | |
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 |