Skip to content

Commit

Permalink
config: deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRomaa committed Mar 12, 2024
1 parent 1a4af73 commit c6702e4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ruff
name: Check
on:
push:
branches:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy
on:
workflow_run:
workflows:
- Check
types:
- completed
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script: sudo /usr/local/sbin/update-core
1 change: 0 additions & 1 deletion apps/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import pytz
import requests
from auditlog.registry import auditlog
from django.conf import settings
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
from django.contrib.auth.models import PermissionsMixin
from django.db import models
Expand Down

0 comments on commit c6702e4

Please sign in to comment.