-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.09 KB
/
deploy_contents.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: deploy contents
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 15.x
- name: Restore caches
uses: actions/cache@v2
with:
path: |
~/.npm
./node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-
- run: yarn install
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@master
with:
project_id: "k9bookshelf-bazel-cache"
service_account_key: ${{ secrets.GCP_BAZEL_CACHE_KEY }}
export_default_credentials: true
- run: make -s deploy/contents
if: github.ref == 'refs/heads/main'
env:
MARKDOWN_APP_KEY: ${{ secrets.MARKDOWN_APP_KEY }}
MARKDOWN_APP_SECRET: ${{ secrets.MARKDOWN_APP_SECRET }}
GRAPHQL_ADMIN_API_SECRET: ${{ secrets.GRAPHQL_ADMIN_API_SECRET }}