From 9897d37afb9643683cab1315c2c04f43e4bc8726 Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Wed, 12 Oct 2022 16:41:53 -0500 Subject: [PATCH] build: updating project layout --- .woodpecker.yml | 2 ++ scripts/release.sh | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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