Last active
February 6, 2021 16:21
-
-
Save jmolivas/bab53777bee19caebb5ca31d1f8b6e11 to your computer and use it in GitHub Desktop.
Trigger Netlify build from a Google Spreadsheet
This file contains 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
# From your Google Spreadsheet, select the menu item Tools > Script editor. | |
# Copy and paste this code. | |
# Replace uuid with the build_hooks uuid from your Netlify project. | |
function onOpen() { | |
SpreadsheetApp.getUi() | |
.createMenu('Scripts') | |
.addItem('Build', 'build') | |
.addToUi(); | |
} | |
function build() { | |
UrlFetchApp.fetch('https://api.netlify.com/build_hooks/uuid', { | |
'method': 'post', | |
}) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@vermario that is really nice