diff --git a/.woodpecker.yml b/.woodpecker.yml index 47abca5..399ea7b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -8,6 +8,7 @@ pipeline: build: image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest commands: + - nix profile install 'nixpkgs#fontconfig' - nix develop --command scripts/build.sh secrets: - gitea_token @@ -23,6 +24,7 @@ pipeline: release: image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest commands: + - nix profile install 'nixpkgs#fontconfig' - nix develop --command scripts/release.sh secrets: - gitea_token diff --git a/scripts/release.sh b/scripts/release.sh index e5310c6..a5d0051 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -14,9 +14,18 @@ cd $(dirname $(dirname $0)) ./scripts/check-env-bucket.sh || exit 1 # Clean up old versions of the file. -log "cleaning up prior mess" +log "cleaning up prior versions which may not match versions" rm -f dmoonfire* +# We need to change the URL to allow us to push. +if [ "x$CI" != "x" ] +then + log "changing Git URL to allow for pushing" + git remove set-url origin https://dmoonfire:$GITEA_TOKEN@src.mfgames.com/fedran-sources/i-will-hurt-you-only-once.git +else + log "not changing Git URL because we are not in a CI" +fi + # Perform the release process. log "performing semantic release" npx semantic-release