-
-
Notifications
You must be signed in to change notification settings - Fork 55
32 lines (30 loc) · 847 Bytes
/
deploy-dev.yml
File metadata and controls
32 lines (30 loc) · 847 Bytes
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
name: Deploy to Deta (dev)
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
deploy-dev:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 12
- name: Cache node modules
uses: c-hive/gha-npm-cache@v1
- name: Install dependencies
run: npm ci
- name: Run build command
run: npm run build
- name: Deploy to Deta
uses: BogDAAAMN/deta-deploy-action@v1.0.1
with:
# Deta access token https://docs.deta.sh/docs/cli/auth
deta-access-token: ${{ secrets.DETA_ACCESS_TOKEN }}
deta-name: ${{ secrets.DETA_DEV_MICRO_NAME }}
deta-project: ${{ secrets.DETA_PROJECT_NAME }}