-
Notifications
You must be signed in to change notification settings - Fork 19
41 lines (34 loc) · 1 KB
/
gh-publish-web.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
name: Publish website at euroscipy.org
on:
push:
branches:
- develop
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: '3.7'
- name: Install dependencies
run: make install-ci
- name: sync website with rsync
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
SSH_KNOWN_HOST: ${{ secrets.SSH_KNOWN_HOST }}
run: |
mkdir -p ~/.ssh
python3 write_key.py
chmod og-rwx ~/.ssh/id_rsa ~/.ssh/known_hosts
wc -l ~/.ssh/id_rsa ~/.ssh/known_hosts
ls -lh ~/.ssh
make rsync_upload