diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 110f84a..51e40be 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,3 +1,4 @@ +# leaving it for now because have to figure out how to deploy because server is behind private network name: Deploy both frontend and backend on server @@ -7,31 +8,23 @@ on: pull_request: branches: [ "main" ] -permissions: - contents: read jobs: - build: - + Deploy: runs-on: ubuntu-latest - + environment: production steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 - with: - python-version: "3.10" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest + - name: checkout code + uses: actions/checkout@v4 + + - name: Add private key to agent + uses: webfactory/ssh-agent@v0.9.1 + with: + ssh-private-key: ${{ secrets.SSH_PK }} + + - name: Deploy to server + env: + SERVER_USER: ${{ secrets.SERVER_USER }} + SERVER_IP: + + \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index 80044b5..a7c645c 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -46,7 +46,7 @@

UIC NetID:

-

Beta Version. Created by Harish Modi and Marcin Gorski.

+

Beta Version. Created by Harshit Modi and Marcin Gorski.