summaryrefslogtreecommitdiffstats
path: root/.build.yml
blob: f0708cc727e0f24021f394f74eb54d45bbab0e6d (plain)
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
image: debian/stable
packages:
  - curl
  - rsync
  - ruby
  - ruby-dev
  - zlib1g-dev
sources:
  - https://git.sr.ht/~sircmpwn/drewdevault.com
environment:
  deploy: deploy@drewdevault.com
secrets:
  - 160a72cf-34d6-47b7-928b-c13b42b4d4f6
triggers:
  - action: email
    condition: always
    to: Drew DeVault <sir@cmpwn.com>
tasks:
  - openring: |
      curl -O https://yukari.sr.ht/openring
      chmod +x openring
      cd drewdevault.com
      ../openring \
        -s https://emersion.fr/blog/rss.xml \
        -s http://way-cooler.org/feed.xml \
        -s https://danluu.com/atom.xml \
        -s https://os.phil-opp.com/rss.xml \
        -s https://blog.golang.org/feed.atom \
        -s https://aphyr.com/posts.atom \
        < _includes/webring-in.html \
        > _includes/webring-out.html
  - setup: |
      sudo gem install github-pages
  - build: |
      cd drewdevault.com
      jekyll build
  - deploy: |
      cd drewdevault.com
      sshopts="-o StrictHostKeyChecking=no"
      rsync --rsh="ssh $sshopts" -rP _site/ ${deploy}:/var/www/drewdevault.com/