Merge pull request #40 from gcallah/dependabot/pip/django-3.2.24 #29
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
# This is a basic workflow to help you get started with Actions | |
name: PythonAnywhere deployment | |
# Controls when the workflow will run | |
on: | |
push: | |
branches: [ "master" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: build-website | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
# - name: Establish OpenSSL connection | |
# run: openssl aes-256-cbc -K $encrypted_4cefc8a5b2ff_key -iv $encrypted_4cefc8a5b2ff_iv -in id_rsa.enc -out ~/.ssh/id_rsa -d | |
- name: Install the development requirements | |
run: pip install -r requirements-dev.txt | |
- name: Run the tests | |
run: | | |
PYTHONPATH=/home/runner/work/OnlineDevops/OnlineDevops | |
make tests | |
- name: Deploy the project to PythonAnywhere | |
uses: appleboy/ssh-action@master | |
with: | |
host: 'ssh.pythonanywhere.com' | |
username: 'devopscourse' | |
key: ${{ secrets.PA_SSH_KEY }} | |
port: 22 | |
script: cd /home/devopscourse/OnlineDevops; /home/devopscourse/OnlineDevops/rebuild.sh |