~ane/web

ref: 76570dbb980972deb913840ccac3f0110a716d95 web/.build.yml -rw-r--r-- 1.1 KiB
76570dbbAntoine Kalmbach issue github redirect code 2 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
30
31
32
33
34
35
36
37
38
39
image: debian/stable
oauth: pages.sr.ht/PAGES:RW
environment:
  site: ane.iki.fi
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
  # - package: |
      # cd web/_site
      # tar -cvz . > ../../site.tar.gz
  # - upload: |
      # acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz	
  - push: |
      cd web/_site
      git init .
      git config user.email ane@iki.fi
      git config user.name "Antoine Kalmbach"
      git add .
      git commit -m "[builds.sr.ht] 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