Merge branch 'live' into beta

This commit is contained in:
Alex Williams
2024-06-20 23:55:31 +01:00
committed by GitHub

View File

@@ -1,13 +1,14 @@
# This is a basic deployment workflow triggered by pushes to the alpha branch. # This is a basic deployment workflow triggered by pushes to the alpha branch.
name: Auto-Deploy 'beta' Branch to beta.coliolis.io
name: Auto-Deploy 'live' Branch to coliolis.io
# Controls when the action will run. Workflow runs when the alpha branch receives a push event # Controls when the action will run. Workflow runs when the alpha branch receives a push event
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: branches:
- beta - live
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
@@ -18,8 +19,8 @@ jobs:
run: | run: |
rm -Rf ./coriolis rm -Rf ./coriolis
rm -Rf ./coriolis-data rm -Rf ./coriolis-data
git clone https://github.com/Brighter-Applications/coriolis.git --single-branch --branch beta git clone https://github.com/Brighter-Applications/coriolis.git --single-branch --branch live
git clone https://github.com/Brighter-Applications/coriolis-data.git --single-branch --branch beta git clone https://github.com/Brighter-Applications/coriolis-data.git --single-branch --branch live
cd coriolis-data cd coriolis-data
export NVM_DIR=~/.nvm export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh source ~/.nvm/nvm.sh
@@ -27,4 +28,4 @@ jobs:
cd ../coriolis cd ../coriolis
npm install npm install
npm run build npm run build
sudo -u www-data cp -r ./build/* /var/www/beta.coriolis.io/ sudo -u www-data cp -r ./build/* /var/www/coriolis.io/