feat(ci): add auto deploy workflow for Apps Script #1
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 Google Apps Script | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Install clasp | |
| run: npm install -g @google/clasp | |
| - name: Configure Google credentials | |
| run: | | |
| mkdir -p ~/.clasprc/ | |
| echo '${{ secrets.CLASP_RC }}' > ~/.clasprc.json | |
| - name: Push code to Google Apps Script | |
| run: clasp push |