Update main.yml #5
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: deployment | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
steps: | |
- name: git pull | |
run: | | |
cd /home/django/project/Fantasy-Forge | |
git fetch --all | |
git checkout main | |
git pull --all | |
- name: installing dependencies and setup | |
run: | | |
cd /home/django/project/Fantasy-Forge | |
cd ./api | |
pipenv run python manage.py migrate | |
cd ../frontend | |
npm install | |
npm install axios | |
npm run build |