aboutsummaryrefslogtreecommitdiff
path: root/.builds/deploy.yml
blob: 7f1769ff2cb549ff6f18e4c01e0b287801b79f7a (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
image: debian/stable
oauth: pages.sr.ht/PAGES:RW
packages:
- hut
- ruby-full
- ruby-dev
secrets:
  - 232c738f-79b2-4296-bd8e-e9eff01bae60
environment:
  repo: 1mb-club
  site: 1mb.club
submitter:
  git.sr.ht:
    enabled: true
    allow-refs:
      - refs/heads/deploy
tasks:
- install-bundler: |
    cd $repo
    sudo gem install bundler
- jekyll-build: |
    cd $repo
    sudo bundle install
    sudo bundle exec jekyll build
- package-site: |
    cd $repo/_site
    tar -cvzh . > ../site.tar.gz
- deploy: |
    hut pages publish -d $site --site-config $repo/siteconfig.json $repo/site.tar.gz
- deploy-www: |
    hut pages publish -d www.$site --site-config $repo/siteconfig.json $repo/site.tar.gz