~ane/web

ref: develop web/.build.yml -rw-r--r-- 751 bytes
11a2143fAntoine Kalmbach Derp 11 months 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
28
29
image: debian/stable
packages:
  - ruby2.5
  - graphviz
  - ditaa
  - plantuml
  - ruby-dev
  - zlib1g-dev
sources:
  - https://git.sr.ht/~ane/web
secrets:
  - 1d566b53-84ba-4840-afac-e20f0b3b02ef
tasks:
  - install-bundler: |
      sudo gem install bundler
  - build: |
      cd web
      bundle install
      bundle exec jekyll build
  - push: |
      cd _site
      git init .
      git add .
      git commit -m "Deploying website"
      echo -e "Host github.com\n  IdentityFile /home/build/.ssh/1d566b53-84ba-4840-afac-e20f0b3b02ef\n  IdentitiesOnly yes\n  BatchMode yes" >> ~/.ssh/config
      ssh-keyscan -H github.com >> ~/.ssh/known_hosts
      git remote add github git@github.com:ane/ane.github.io.git
      git push --force github master