-
-
Notifications
You must be signed in to change notification settings - Fork 110
45 lines (38 loc) · 1.09 KB
/
deploy.yml
File metadata and controls
45 lines (38 loc) · 1.09 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
# .github/workflows/deploy.yml
name: Deploy openDAW studio
on:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: ⬇️ Checkout main repo
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: 🦄 Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 22
cache: npm
- name: 📦 Install dependencies
run: npm ci
- name: 🏗️ Build project
shell: bash
env:
CI: true
BRANCH_NAME: ${{ github.ref_name }}
run: |
npm run build
- name: 🚚 Run deploy script
env:
TERM: xterm-256color
SFTP_HOST: ${{ secrets.SFTP_HOST }}
SFTP_PORT: ${{ secrets.SFTP_PORT }}
SFTP_USERNAME: ${{ secrets.SFTP_USERNAME }}
SFTP_PASSWORD: ${{ secrets.SFTP_PASSWORD }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
BRANCH_NAME: ${{ github.ref_name }}
run: |
npx ts-node --transpile-only deploy/run.ts