diff --git a/.github/workflows/autodeploy.yml b/.github/workflows/autodeploy.yml index 4722b4f9..b629b8fe 100644 --- a/.github/workflows/autodeploy.yml +++ b/.github/workflows/autodeploy.yml @@ -22,12 +22,21 @@ jobs: rm -Rf ./coriolis-data git clone https://github.com/Brighter-Applications/coriolis.git --single-branch --branch ${BRANCH_NAME} git clone https://github.com/Brighter-Applications/coriolis-data.git --single-branch --branch ${BRANCH_NAME} + + buildcode: + runs-on: self-hosted + steps: + - shell: bash + run: | cd coriolis-data export NVM_DIR=~/.nvm source ~/.nvm/nvm.sh - npm install npm start cd ../coriolis - npm install npm run build - if [ ${BRANCH_NAME} == "beta" ]; then sudo -u www-data cp -r ./build/* /var/www/beta.coriolis.io/; else sudo -u www-data cp -r ./build/* /var/www/coriolis.io/; fi + movecode: + runs-on: self-hosted + steps: + - shell: bash + run: | + if [ ${{ github.events.inputs.branch }} == "beta" ]; then sudo -u www-data cp -r ./build/* /var/www/beta.coriolis.io/; else sudo -u www-data cp -r ./build/* /var/www/coriolis.io/; fi diff --git a/.github/workflows/manualdeploy.yml b/.github/workflows/manualdeploy.yml index 3af8ff34..64ee2c3b 100644 --- a/.github/workflows/manualdeploy.yml +++ b/.github/workflows/manualdeploy.yml @@ -27,12 +27,20 @@ jobs: rm -Rf ./coriolis-data git clone https://github.com/Brighter-Applications/coriolis.git --single-branch --branch ${{ github.events.inputs.branch }} git clone https://github.com/Brighter-Applications/coriolis-data.git --single-branch --branch ${{ github.events.inputs.branch }} + buildcode: + runs-on: self-hosted + steps: + - shell: bash + run: | cd coriolis-data export NVM_DIR=~/.nvm source ~/.nvm/nvm.sh - npm install npm start cd ../coriolis - npm install npm run build + movecode: + runs-on: self-hosted + steps: + - shell: bash + run: | if [ ${{ github.events.inputs.branch }} == "beta" ]; then sudo -u www-data cp -r ./build/* /var/www/beta.coriolis.io/; else sudo -u www-data cp -r ./build/* /var/www/coriolis.io/; fi