Skip to content

Commit 0bd2b83

Browse files
committed
feat(ci): add auto deploy workflow for Apps Script
1 parent 3e7ada7 commit 0bd2b83

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy Google Apps Script
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 18
20+
21+
- name: Install clasp
22+
run: npm install -g @google/clasp
23+
24+
- name: Configure Google credentials
25+
run: |
26+
mkdir -p ~/.clasprc/
27+
echo '${{ secrets.CLASP_RC }}' > ~/.clasprc.json
28+
29+
- name: Push code to Google Apps Script
30+
run: clasp push

0 commit comments

Comments
 (0)