2022-07-06 20:56:06 +00:00
|
|
|
name: fastCI
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
|
|
fast-deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Pull most recent version of repo
|
|
|
|
uses: appleboy/ssh-action@master
|
|
|
|
with:
|
|
|
|
host: ilia.moe
|
|
|
|
username: ubuntu
|
|
|
|
key: ${{ secrets.SSH_KEY }}
|
|
|
|
script: |
|
|
|
|
cd repo
|
|
|
|
git stash
|
|
|
|
git pull --force origin master
|
|
|
|
git submodule update --remote
|
|
|
|
- name: Recompile sass for the main website
|
|
|
|
uses: appleboy/ssh-action@master
|
|
|
|
with:
|
|
|
|
host: ilia.moe
|
|
|
|
username: ubuntu
|
|
|
|
key: ${{ secrets.SSH_KEY }}
|
|
|
|
script: |
|
|
|
|
cd repo/src
|
2022-09-30 03:43:05 +00:00
|
|
|
sass scss/:css/
|
2022-07-06 20:56:06 +00:00
|
|
|
- name: Build hugo
|
|
|
|
uses: appleboy/ssh-action@master
|
|
|
|
with:
|
|
|
|
host: ilia.moe
|
|
|
|
username: ubuntu
|
|
|
|
key: ${{ secrets.SSH_KEY }}
|
|
|
|
script: |
|
|
|
|
cd repo/hugo
|
|
|
|
cd recipe
|
|
|
|
hugo -D
|
|
|
|
- name: Move files so NGINX can see them
|
|
|
|
uses: appleboy/ssh-action@master
|
|
|
|
with:
|
|
|
|
host: ilia.moe
|
|
|
|
username: ubuntu
|
|
|
|
key: ${{ secrets.SSH_KEY }}
|
|
|
|
script: |
|
2022-09-30 01:34:17 +00:00
|
|
|
sudo rm -rf /usr/share/nginx/html/ilia.moe
|
|
|
|
sudo cp -r repo/src /usr/share/nginx/html/ilia.moe
|
|
|
|
sudo cp -r repo/hugo/recipe/public /usr/share/nginx/html/ilia.moe/cool-stuff/recipes
|
|
|
|
sudo cp repo/error_pages/* /usr/share/nginx/html/resources
|