this repo has no description
at main 648 B view raw
1when: 2 - event: ["push"] 3 tag: ["*"] 4 5engine: nixery 6 7dependencies: 8 nixpkgs: 9 - go 10 - less 11 - gcc 12 13 # custom registry 14 git+https://tangled.org/regnault.dev/spindle-artifact: 15 - spindle-artifact 16 17environment: 18 CGO_ENABLED: 1 19 20steps: 21 - name: Setup git 22 command: | 23 git fetch 24 git checkout main 25 git pull --tags 26 27 - name: Build 28 command: | 29 TAG=$(git tag | tac | head -1) 30 go build . 31 mv spindle-artifact spindle-artifact-$TAG 32 33 - name: Upload artifact 34 command: | 35 TAG=$(git tag | tac | head -1) 36 ~/.nix-profile/bin/spindle-artifact spindle-artifact $TAG spindle-artifact-$TAG