-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (38 loc) · 1.23 KB
/
zapier-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Zapier Release
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Install Zapier CLI
run: npm install -g zapier-platform-cli
- name: Create Zapier config
env:
ZAPIER_DEPLOY_KEY: ${{ secrets.ZAPIER_DEPLOY_KEY }}
run: |
echo "{\"id\":${{ secrets.ZAPIER_INTEGRATION_ID }}, \"key\":\"${{ secrets.ZAPIER_DEPLOY_KEY }}\"}" > .zapierapprc
- name: Validate Zapier Integration
env:
ZAPIER_DEPLOY_KEY: ${{ secrets.ZAPIER_DEPLOY_KEY }}
run: |
echo "## Zapier Validation Results" >> "$GITHUB_STEP_SUMMARY"
echo "\`\`\`" >> "$GITHUB_STEP_SUMMARY"
zapier validate 2>&1 | tee >("$GITHUB_STEP_SUMMARY")
echo "\`\`\`" >> "$GITHUB_STEP_SUMMARY"
- name: Deploy to Zapier
env:
ZAPIER_DEPLOY_KEY: ${{ secrets.ZAPIER_DEPLOY_KEY }}
run: zapier push