Skip to content

Instantly share code, notes, and snippets.

@joestump
Last active February 21, 2024 11:40
Show Gist options
  • Save joestump/37830c5e4114e4aad726 to your computer and use it in GitHub Desktop.
Save joestump/37830c5e4114e4aad726 to your computer and use it in GitHub Desktop.
Using modern JavaScript and CI tooling for Google Apps Scripts
#!/bin/bash
npm run build
gas deploy -s ./conf/$CLIENT_SECRETS -c ./conf/$OAUTH_CREDENTIALS -b ./build -f $GAS_FILE_ID
#!/bin/bash
npm run lint && npm run test
language: node_js
node_js:
- "0.11"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y python-virtualenv python-pip
- virtualenv .
- . ./bin/activate
- pip install -r ./requirements.txt
script:
- "/bin/bash ./ci/test.sh"
- "/bin/bash ./ci/deploy.sh"
env:
global:
- CLIENT_SECRETS="client_secret_XXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com.json"
- OAUTH_CREDENTIALS="credentials_production.json"
- GAS_FILE_ID="YYYYYYYYY_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment