Skip to content

Commit

Permalink
deploy api viewer automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
andibraeu committed Nov 15, 2024
1 parent 538ef7b commit 311dcea
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 27 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Pylint

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
- name: render website
run: |
python render3.py build
- name: Deploy
if: github.event_name == 'push'
uses: nogsantos/[email protected]
with:
src: ./build/*
host: ${{ secrets.SSH_HOST }}
remote: ${{ secrets.SSH_DIR }}
port: ${{ secrets.SSH_PORT }}
user: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
27 changes: 0 additions & 27 deletions .github/workflows/pylint.yml

This file was deleted.

0 comments on commit 311dcea

Please sign in to comment.