2024-01-27 15:47:55 +00:00
|
|
|
name: deploy
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
2024-06-20 07:27:59 +00:00
|
|
|
node-version: 22.x
|
|
|
|
- run: npm ci
|
2024-01-27 15:47:55 +00:00
|
|
|
- uses: purcell/setup-emacs@master
|
|
|
|
with:
|
|
|
|
version: 29.1
|
|
|
|
- name: "Export org to md"
|
|
|
|
run: emacs -Q --script export.el
|
2024-06-20 07:27:59 +00:00
|
|
|
- run: npm run build
|
2024-01-27 15:47:55 +00:00
|
|
|
- name: "Deploy on the Web"
|
|
|
|
uses: appleboy/scp-action@v0.1.7
|
|
|
|
with:
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
key: ${{ secrets.KEY }}
|
|
|
|
port: ${{ secrets.PORT }}
|
|
|
|
source: content/.vuepress/dist/*
|
|
|
|
target: ${{ secrets.DESTPATH }}
|
|
|
|
strip_components: 3
|
|
|
|
- name: "Deploy on Gemini"
|
|
|
|
uses: appleboy/scp-action@v0.1.7
|
|
|
|
with:
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
key: ${{ secrets.KEY }}
|
|
|
|
port: ${{ secrets.PORT }}
|
|
|
|
source: gemini/*
|
|
|
|
target: ${{ secrets.DESTPATH_GMI }}
|
|
|
|
strip_components: 1
|