-
Notifications
You must be signed in to change notification settings - Fork 18
40 lines (33 loc) · 985 Bytes
/
main.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
35
36
37
38
39
40
# Automatically deploy the latest changes to the FTP server.
on:
# Triggers the workflow on push events but only for the "master" branch.
push:
branches: [ "master" ]
# Allows this workflow to be run manually from the Actions tab.
workflow_dispatch:
name: 🚀 Auto-Deploy
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
- name: 🚚 Get latest code
uses: actions/[email protected]
with:
submodules: 'recursive'
- uses: actions/setup-node@master
- name: 📥 Install project dependencies
run: yarn
- name: ⚒️ Build the project
run: yarn build
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ftp-staging.vircadia.dev
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
local-dir: build/
dry-run: false