aboutsummaryrefslogtreecommitdiff
path: root/.builds/doc.yml
blob: 177244ca1c2d3366dfafae512a9151c28c94dd09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
packages:
  - cargo
  - hut
environment:
  site: iced-dialog.pml68.dev
tasks:
  - build-docs: |
      cd iced_dialog
      cargo doc --verbose --no-deps
  - copy-redirect: |
      cd iced_dialog
      cp docs/redirect.html target/doc/index.html
  - package: |
      cd iced_dialog
      tar -C target/doc -cvz . > site.tar.gz
  - upload: |
      cd iced_dialog
      [ "$BUILD_SUBMITTER" = "git.sr.ht" ] || complete-build
      [ "$GIT_REF" = "refs/heads/master" ] || complete-build
      [ "$(git remote get-url origin)" = "https://git.sr.ht/~pml68/iced_dialog" ] || complete-build
      hut pages publish -d $site site.tar.gz