-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (31 loc) · 863 Bytes
/
publish.yml
File metadata and controls
31 lines (31 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: publish
on:
push:
branches:
- main
pull_request:
branches:
- "*"
repository_dispatch:
jobs:
publish:
name: Build and publish the website
runs-on: ubuntu-24.04
steps:
- name: Checkout the Git repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.13"
- name: Build website
run: make prod
- name: Sync website with the remote repository
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/actions/sync-repository
with:
local-path: dist/
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
ssh-known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
ssh-port: ${{ secrets.SSH_PORT }}
remote-path: ${{ secrets.REMOTE_SSH }}:/srv/toltec/web