-
Notifications
You must be signed in to change notification settings - Fork 273
47 lines (42 loc) · 1.14 KB
/
netlify-cms-auth.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
39
40
41
42
43
44
45
46
47
name: Build and Deploy Netlify CMS Auth
on:
push:
workflow_dispatch:
jobs:
build_and_deploy:
name: Build and Deploy
environment: "netlify-cms-auth"
permissions:
contents: read
deployments: write
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
.yarn/cache
.yarn/install-state.gz
.eslintcache
**/tsconfig.tsbuildinfo
**/.types/**
**/.types-*/**
key: build-cache-${{ hashFiles('yarn.lock') }}
restore-keys: |
build-cache-
- name: Install dependencies
run: yarn
- name: Publish
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.NEW_CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.NEW_CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: workspaces/netlify-cms-auth
command: publish