-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (39 loc) · 1.08 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build and Deploy Website
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
environment: Deploy
steps:
- uses: actions/setup-python@v3
with:
python-version: '3.x'
- shell: bash
run: pip3 install virtualenv
- uses: actions/checkout@v2
with:
path: vercors-web
- uses: actions/checkout@v2
with:
repository: utwente-fmt/vercors-web-build
path: vercors-web-build
token: ${{ secrets.VERCORS_BOT_PAT }}
- run: |
cd vercors-web
virtualenv venv -p python3
source venv/bin/activate
pip install -r requirements.txt
python build.py
- run: rm -r vercors-web-build/pub/*
- run: cp -r vercors-web/build/* vercors-web-build/pub
- run: |
cd vercors-web-build
git config --global user.name "VerCors Bot"
git config --global user.email "[email protected]"
git add .
git status
git commit -m 'Update Website'
git push