-
Notifications
You must be signed in to change notification settings - Fork 38
49 lines (40 loc) · 1.19 KB
/
deploy.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Deploy freshrss.org
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup locale
run: |
sudo apt-get install locales
sudo locale-gen en_GB.utf8
- name: Install Boop!
run: |
git clone https://framagit.org/marienfressinaud/boop.git boop
pip install -r boop/requirements.txt
echo "$(pwd)/boop" >> $GITHUB_PATH
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
name: id_ed25519
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
config: |
Host freshrss
HostName freshrss.org
Port ${{ secrets.SSH_PORT }}
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
- name: Configure the environment
run: echo SERVER_DEST=${{ secrets.SERVER_DEST }} > .env
- name: Build and publish the blog
run: make publish