mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
Adding workflow for autodeploy
This commit is contained in:
29
.github/workflows/autodeploy.yml
vendored
Normal file
29
.github/workflows/autodeploy.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
# This is a basic deployment workflow triggered by pushes to the alpha branch.
|
||||
|
||||
name: Auto-Deploy
|
||||
|
||||
# Controls when the action will run. Workflow runs when the alpha branch receives a push event
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- alpha
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
downloadcode:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- shell: bash
|
||||
run: |
|
||||
git clone https://github.com/alex-williams/coriolis-data.git
|
||||
cd coriolis-data
|
||||
git checkout alpha
|
||||
npm install
|
||||
cd ../
|
||||
git clone https://github.com/alex-williams/coriolis.git
|
||||
cd ./coriolis
|
||||
git checkout alpha
|
||||
npm install
|
||||
npm run build
|
||||
sudo -u www-data cp -r ./build/* /var/www/newdisk/coriolis.brighter-applications.co.uk/
|
||||
Reference in New Issue
Block a user