Replace the shell scripts in flake.nix with Nushell scripts in ci/, exposed as flake apps in nix/ci-tasks.nix, so every workflow command is a plain nix call. Build the workspace dependencies in a step of their own, upload to Cachix only after the builds, and run the formatting check through the pre-commit hooks. Automated pushes, tags and pull requests now use the wvhulle-bot account. A weekly cron updates Cargo.lock and flake.lock and opens or updates one pull request from bot/dependency-updates. Claude-Session: https://claude.ai/code/session_01D8dLLgYd8cfR2aQfA5eZXa
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
when:
|
|
- repo: wvhulle/bootvine
|
|
event: [push, manual]
|
|
branch: main
|
|
|
|
depends_on:
|
|
- checks
|
|
|
|
clone:
|
|
- name: clone-with-history
|
|
image: woodpeckerci/plugin-git
|
|
settings:
|
|
depth: 0
|
|
partial: false
|
|
tags: true
|
|
|
|
variables:
|
|
- &release_env
|
|
NIX_CONFIG: |
|
|
experimental-features = nix-command flakes
|
|
build-users-group =
|
|
accept-flake-config = true
|
|
GIT_AUTHOR_NAME: release-plz
|
|
GIT_AUTHOR_EMAIL: willemvanhulle@protonmail.com
|
|
GIT_COMMITTER_NAME: release-plz
|
|
GIT_COMMITTER_EMAIL: willemvanhulle@protonmail.com
|
|
CODEBERG_TOKEN:
|
|
from_secret: bot_token
|
|
CARGO_REGISTRY_TOKEN:
|
|
from_secret: cargo_registry_token
|
|
|
|
steps:
|
|
- name: publish-unreleased-crate-version
|
|
image: nixos/nix:latest
|
|
environment: *release_env
|
|
commands:
|
|
- nix run --quiet .#publish-unreleased-crate-version
|
|
|
|
- name: open-or-update-release-pr
|
|
image: nixos/nix:latest
|
|
environment: *release_env
|
|
commands:
|
|
- nix run --quiet .#open-or-update-release-pr
|