fix
[teaching-cabinet.git] / tasks / tasks.md
blob9f0c47262cdebf2633f9ca13c66582002cf9d961
1 # Tasks
3 1. Select and publish my most interesting activities #alpha
4 1. Collect activities from other people #some-day
5 1. Accept monetary donations at least until we reach #beta
6 1. Make a git hook to upload contents to Moritz server #some-day
9 ##  Make a git hook to upload contents to Moritz server
11 References:
13 * [Moritz build.yml to upload this website]( Make a git hook to upload contents to Moritz server )
14 * The prototype from Moritz to upload site via .build.yml:
15 ```
16 image: archlinux
17 oauth: pages.sr.ht/PAGES:RW
18 packages:
19 - cargo
20 - mdbook
21 - mdbook-linkcheck
22 - sftp
23 environment:
24   site: teaching-cabinet.cc
25 secrets:
26   - 00000000-0000-0000-0000-000000000000 # SSH key
27 sources:
28   - https://git.sr.ht/~xavierb/teaching-cabinet-repo
29 tasks:
30 - package: |
31     cargo install mdbook-indexing
32     export PATH=/home/build/.cargo/bin:$PATH
33     cd teaching-cabinet-repo
34     mdbook build
35     cd book/html
36 - upload: |
37     cd teaching-cabinet-repo/book/html
38     sftp -b - xavier@charon.45n43b.xyz << EOF
39     cd /home/xavier/web
40     put -R .
41     exit
42     EOF
43 ```