config.phundrak.com/.gitea/workflows/deploy.yaml

33 lines
805 B
YAML
Raw Normal View History

2023-12-07 18:49:22 +00:00
name: deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: purcell/setup-emacs@master
with:
version: 29.1
- name: "Export org to md"
run: emacs -Q --script export.el
- uses: actions/setup-node@v4
2023-12-07 18:49:22 +00:00
with:
node-version: 20.x
2024-01-28 04:33:11 +00:00
- run: corepack enable
- run: npm ci
- run: npm run build
2023-12-07 18:49:22 +00:00
- name: "Deploy to remote server"
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
source: docs/.vuepress/dist/*
target: ${{ secrets.DESTPATH }}
strip_components: 3