-
-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (44 loc) · 1.45 KB
/
Copy pathdeploy-dev.yml
File metadata and controls
48 lines (44 loc) · 1.45 KB
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
48
# This workflow will do a clean install of node dependencies,
# build the application and deploy it as latest nightly
# as soon as there are pushes to the main branch
name: Build & Deploy (Nightly)
permissions:
contents: read
pull-requests: write
on:
push:
branches: [ main ]
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
package_json_file: frontend/package.json
- name: Use Node.js
uses: actions/setup-node@v7
with:
node-version: '24.x'
cache: 'pnpm'
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Build app
run: |
cd frontend/
printf "VITE_FB_API_KEY=${{ secrets.VUE_APP_FB_API_KEY_DEV }}\nVITE_FB_PROJECT_ID=${{ secrets.VUE_APP_FB_PROJECT_ID_DEV }}" >> .env.production.local
pnpm install
pnpm run build
- name: Push Build files to testing environment
uses: burnett01/rsync-deployments@9.0.0
with:
switches: -avzr --delete
path: frontend/dist/
remote_path: ${{ secrets.DEPLOY_PATH_DEV }}
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_port: ${{ secrets.DEPLOY_PORT }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_SSH_KEY }}
remote_key_pass: ${{ secrets.DEPLOY_SSH_PHRASE }}