klejejs - push - e5146eb8c4e6186bd0717af9ebc158965bfc83bf #948
This file contains hidden or 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 | |
| paths-ignore: | |
| - ".github/**" | |
| - "!.github/workflows/zendesk-deploy.yml" | |
| - ".devcontainer.json" | |
| - ".editorconfig" | |
| - ".env.example" | |
| - "CHANGELOG.md" | |
| - "LICENSE" | |
| - "README.md" | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| deploy-to-zendesk: | |
| if: github.repository_owner == 'NabuCasa' | |
| environment: content | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out files from GitHub | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Setting up Node.js | |
| uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm install ci | |
| - name: Compile Eleventy | |
| run: npm run build | |
| - name: Deploy to Zendesk via REST API | |
| env: | |
| ZENDESK_API_USER: ${{ secrets.ZENDESK_API_USER }} | |
| ZENDESK_API_TOKEN: ${{ secrets.ZENDESK_API_TOKEN }} | |
| run: | | |
| node deploy.js |