updated allowd hosts #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy app | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
Deploy: | |
runs-on: self-hosted | |
steps: | |
- name: Deploy code | |
run: | | |
cd /home/django/project | |
if [ -d "./Instagenda" ]; then | |
cd ./Instagenda | |
git pull | |
else | |
git clone https://github.com/HE-Arc/Instagenda.git | |
cd ./Instagenda | |
fi | |
- name: Configure python env for django | |
run: | | |
cd /home/django/project/Instagenda/api | |
pipenv install --deploy | |
pipenv install django | |
pipenv install djangorestframework | |
pipenv run python manage.py migrate | |
pipenv run python manage.py collectstatic --noinput | |
sudo systemctl restart gunicorn | |
- name: Build Vue.js | |
run: | | |
cd /home/django/project/Instagenda/frontend | |
npm install | |
npm run build |