preliminary CD
This commit is contained in:
parent
f6212da759
commit
84c140f173
1 changed files with 21 additions and 0 deletions
21
.forgejo/workflows/deploy.yml
Normal file
21
.forgejo/workflows/deploy.yml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-website:
|
||||||
|
name: Build and deploy website
|
||||||
|
runs-on: alpine:edge
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Install dependencies
|
||||||
|
run: apk add curl nodejs git zola openssh
|
||||||
|
- name: Output SSH key to file
|
||||||
|
run: echo ${{ secrets.SSH_KEY }} > ssh_id
|
||||||
|
- name: Build web
|
||||||
|
run: zola build
|
||||||
|
# TODO: this is where the LaTeX build would go...
|
||||||
|
- name: Transfer built files
|
||||||
|
run: scp -i ssh_id -o StrictHostKeyChecking=accept-new -r ./public/ ${{ vars.SERVER_URL }}
|
Loading…
Add table
Reference in a new issue