when: - event: ["push"] tag: ["*"] engine: nixery dependencies: nixpkgs: - go - less - gcc # custom registry git+https://tangled.org/regnault.dev/spindle-artifact: - spindle-artifact environment: CGO_ENABLED: 1 steps: - name: Setup git command: | git fetch git checkout main git pull --tags - name: Build command: | TAG=$(git tag | tac | head -1) go build . mv spindle-artifact spindle-artifact-$TAG - name: Upload artifact command: | TAG=$(git tag | tac | head -1) ~/.nix-profile/bin/spindle-artifact spindle-artifact $TAG spindle-artifact-$TAG