Bump certifi from 2024.2.2 to 2024.7.4 in /app/resources #112
Workflow file for this run
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
# A basic action that deploys to the server | |
name: CI | |
on: [push] | |
jobs: | |
test: | |
runs-on: Ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: python -m pip install -r requirements.txt | |
- name: Test with pytest | |
run: python -m pytest | |
deploy: | |
needs: test | |
if: ${{ github.ref_name == 'main' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: deploy on production server | |
uses: appleboy/ssh-action@v1.0.3 | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
port: ${{ secrets.PORT }} | |
script_stop: true | |
script: | | |
cd better-tiss-calendar | |
git pull | |
npm install | |
npx tailwindcss --minify -i app/templates/template.css -o app/static/style.css | |
source .venv/bin/activate | |
python -m pip install -r requirements.txt | |
systemctl --user restart bettercal.service |