~cyplo/genpass

genpass/.build.yml -rw-r--r-- 869 bytes
b5b70292 — Release Bot (cargo-release) version 0.5.14 5 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
image: nixos/latest
sources:
  - git@git.sr.ht:~cyplo/genpass

secrets:
  - 6c23a8c1-7a30-4a7e-b3b7-0171e898a7d3
  - f7642e3d-3fa5-48da-affa-be2fa24da689
  - 996295b0-681c-49e8-8774-1be2f3e0bfe9
  - 376ee22c-23f8-4395-acb7-5b933833df4d

environment:
  CI: "true"

tasks:
  - fetch: |
      cd genpass
      nix-shell --pure --run "ls"
      
  - test: |
      cd genpass
      nix-shell --pure --run "./scripts/test.sh"
      nix-shell --pure --run "./scripts/package.sh"

  - publish_crate: |
      set +xv
      cd genpass
      nix-shell --pure --run "./scripts/release.sh"

  - github_push: |
      set +xv
      cd genpass
      GITHUB_TOKEN=`cat ~/.github_token`
      git remote add github https://cyplo:$GITHUB_TOKEN@github.com/cyplo/genpass.git
      nix-shell --pure --run 'git push github --all --force'
      nix-shell --pure --run 'git push github --tags'