Skip to content

Commit

Permalink
Attempt to deploy in github actions
Browse files Browse the repository at this point in the history
(like hell this is gonna work first time ...)
  • Loading branch information
calaldees committed Oct 18, 2024
1 parent 68d4e63 commit 8583ecb
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/deploy_website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: deploy_language_referemce

on:
push:
branches:
- master
paths:
- '.github/workflows/deploy_website.yml'
- 'teachprogramming/lib/**'
- 'teachprogramming/static/language_reference/**'

jobs:

checkout:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main

compile_and_run_languages:
needs: [checkout]
runs-on: ubuntu-latest
steps:
- working-directory: teachprogramming/static/language_reference
run: make build_and_run

build_static:
needs: [checkout]
runs-on: ubuntu-latest
steps:
- working-directory: teachprogramming/lib
run: make build_static

deploy_static:
needs: [compile_and_run_languages, build_static]
runs-on: ubuntu-latest
steps:
- name: scp_api
uses: appleboy/scp-action@master
with:
host: computingteachers.uk
username: computingteachers
key: ${{ secrets.DEPLOY_SSH_KEY }}
source: "teachprogramming/lib/api/v1"
target: "computingteachers.uk/api"

- name: scp_static
uses: appleboy/scp-action@master
with:
host: computingteachers.uk
username: computingteachers
key: ${{ secrets.DEPLOY_SSH_KEY }}
source: "teachprogramming/lib/static"
target: "computingteachers.uk"

0 comments on commit 8583ecb

Please sign in to comment.