Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

Commit c1b4ab7

Browse files
tatethurstonTate
andauthored
Add GH publish workflow (#2)
Co-authored-by: Tate <tate@transcriptic.com>
1 parent 2a4d683 commit c1b4ab7

File tree

2 files changed

+42
-8
lines changed

2 files changed

+42
-8
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish to Zapier
2+
on:
3+
release:
4+
types: [created]
5+
6+
jobs:
7+
publish:
8+
name: Publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out code
12+
uses: actions/checkout@v2
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 12.18.3
18+
19+
- name: Install Deps
20+
run: yarn install
21+
22+
- name: Compile TypeScript
23+
run: yarn build
24+
25+
- name: Zapier Validate
26+
env:
27+
ZAPIER_DEPLOY_KEY: ${{ secrets.ZAPIER_API_KEY }}
28+
run: yarn zapier validate
29+
30+
- name: Push to Zapier
31+
env:
32+
ZAPIER_DEPLOY_KEY: ${{ secrets.ZAPIER_API_KEY }}
33+
run: yarn zapier push

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ The rest of the project dependencies can be installed by running `yarn install`.
1414

1515
There are a number of helpful scripts in `package.json`.
1616

17-
Run tests
18-
`yarn test`
19-
2017
Run typescript in watch mode:
18+
2119
`yarn watch`
2220

2321
## Docs
@@ -32,16 +30,19 @@ The zapier cli can be run via `yarn zapier`. Some helpful recipes:
3230
### Validate
3331

3432
Run Zapier validations:
33+
3534
`yarn build && yarn zapier validate`
3635

3736
### Logs
3837

39-
All HTTP requests
40-
`yarn zapier logs --type=http --detailed`
38+
All HTTP requests:
39+
40+
`yarn zapier logs --type=http`
41+
42+
Detailed log information:
4143

42-
Details log information:
4344
`yarn zapier logs --type=http --detailed`
4445

45-
### Manual deployment
46+
## Deployment
4647

47-
`yarn build && yarn zapier push`
48+
Use the `publish` Github workflow action.

0 commit comments

Comments
 (0)