2024-01-27 13:18:57 +00:00
|
|
|
name: deploy
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2024-01-27 13:59:53 +00:00
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 18.x
|
|
|
|
- run: corepack enable
|
|
|
|
- run: yarn install --frozen-lockfile
|
2024-01-27 13:18:57 +00:00
|
|
|
- uses: purcell/setup-emacs@master
|
|
|
|
with:
|
|
|
|
version: 29.1
|
|
|
|
- name: "Export org to md"
|
|
|
|
run: emacs -Q --script export.el
|
2024-01-28 05:25:07 +00:00
|
|
|
- run: yarn build
|
2024-01-27 13:18:57 +00:00
|
|
|
- name: "Deploy"
|
|
|
|
uses: appleboy/scp-action@v0.1.7
|
|
|
|
with:
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
key: ${{ secrets.KEY }}
|
|
|
|
port: ${{ secrets.PORT }}
|
|
|
|
source: docs/.vuepress/dist/*
|
|
|
|
target: ${{ secrets.DESTPATH }}
|
|
|
|
strip_components: 3
|