aboutsummaryrefslogtreecommitdiff
path: root/.builds/deploy.yml
blob: 3449788a360895b56e006c49fb420779f72fae80 (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
image: alpine/edge
packages:
  - hut
  - ruby
  - ruby-dev
  - build-base
  - jekyll
oauth: pages.sr.ht/PAGES:RW
environment:
  site: 1mb.club
sources:
  - https://git.sr.ht/~bt/1mb-club
submitter:
  git.sr.ht:
    enabled: true
    allow-refs:
      - refs/heads/deploy
tasks:
  - build: |
      cd 1mb-club
      bundle install
      bundle exec jekyll build
  - deploy: |
      cd 1mb-club
      tar -czf site.tar.gz -C _site .
      hut pages publish -d $site site.tar.gz