-
Notifications
You must be signed in to change notification settings - Fork 17
34 lines (34 loc) · 987 Bytes
/
deploy-theme.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
# Learn more → https://github.com/TryGhost/action-deploy-theme#getting-started
name: Deploy Theme
on:
push:
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Deploy mc site
uses: TryGhost/action-deploy-theme@v1
with:
api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}
- name: Deploy demo site
uses: TryGhost/action-deploy-theme@v1
with:
api-url: ${{ secrets.GHOST_DEMO_URL }}
api-key: ${{ secrets.GHOST_DEMO_KEY }}
- name: Deploy my site
uses: TryGhost/action-deploy-theme@v1
with:
api-url: ${{ secrets.GHOST_ME_URL }}
api-key: ${{ secrets.GHOST_ME_KEY }}