Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (24 sloc) 802 Bytes
name: Deploy GCF
on:
push:
branches:
- master
paths:
- 'functions/getQuotesByDate/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install gcloud SDK
run: |
sudo apt-get update && sudo apt-get install google-cloud-sdk
- name: Activate Service Account
env:
GCLOUD_AUTH: ${{ secrets.GCLOUD_AUTH }}
run: |
echo "$GCLOUD_AUTH" | base64 --decode > "$HOME"/gcloud.json
sh -c "gcloud auth activate-service-account --key-file=$HOME/gcloud.json $*"
- name: deploy function
run: |
gcloud functions deploy getQuotesByDate --runtime nodejs8 --project demoneil --service-account github-actions@demoneil.iam.gserviceaccount.com --source functions/getQuotesByDate
You can’t perform that action at this time.