~ols/blog.ols.wtf

ref: a9402db486d2ae0b214d76a4ea5eec4451a311be blog.ols.wtf/.build.yml -rw-r--r-- 730 bytes
a9402db4Oliver Leaver-Smith auto scroll x on code blocks 2 years ago
                                                                                
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
image: openbsd/latest
sources:
  - https://git.sr.ht/~ols/blog.ols.wtf
packages:
  - rsync-3.1.3
  - lowdown
environment:
  deploy: deploy@beast.ols.wtf
  dir: /home/deploy/blog.ols.wtf
secrets:
  -  ce249f9a-ef77-48d5-9f3b-3005bf9b8db9
tasks:
  - build: |
      cd blog.ols.wtf
      export PATH="$PWD/bin:$PATH"
      tag.sh
      mkdir dst
      ssg5 src dst 'Oliver Leaver-Smith' 'https://blog.ols.wtf'
      twitter
  - deploy: |
      cd blog.ols.wtf
      sshopts="ssh -o StrictHostKeyChecking=no"
      $sshopts $deploy "rm -rf $dir/previous/* && cp -R $dir/current/* $dir/previous/ && rm -rf $dir/current/*"
      rsync --rsh="$sshopts" -rP dst/* $deploy:$dir/current/
  - clean: |
      cd blog.ols.wtf
      rm -rf dst