-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 930 Bytes
/
playtest.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
name: Deploy playtester build
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy:
name: 🎉 Deploy devlopment build to playtest.playdeathgarden.live
runs-on: self-hosted
environment: Dev
defaults:
run:
working-directory: ./dist
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Shutdown the application
run: cd /home/gh-action/dev/ && docker compose down
- name: Synchronize to app directory
run: |
rsync -av --delete \
--exclude ".env" \
--exclude "storage/" \
--exclude "node_modules/" \
--exclude "vendor/" \
./ /home/gh-action/dev/app/
- name: Build and run docker container
run: cd /home/gh-action/dev/ && docker compose up --build -d