-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (33 loc) · 1.15 KB
/
push-to-digital-ocean.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
name: Push to DigitalOcean App Platform
on:
push:
branches:
- main
jobs:
push:
environment: prod
runs-on: ubuntu-22.04
steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# submodules: 'recursive'
# - name: Setup Node.js
# uses: actions/setup-node@v3
# with:
# node-version: '18'
# - name: Install backend dependencies
# run: npm install
# - name: Install frontend dependencies
# run: cd frontend && npm install
# - name: build frontend
# run: cd frontend && npm run build
# env:
# NODE_ENV: prod
# VUE_APP_ENV_GOOGLE_CALLBACK: ${{ vars.GOOGLE_CALLBACK }}
# VUE_APP_ENV_GOOGLE_CLIENT_ID: ${{ vars.GOOGLE_CLIENT_ID }}
- name: DigitalOcean App Platform deployment
uses: digitalocean/[email protected]
with:
app_name: ${{ vars.APP_NAME }}
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}