build: updating project layout

This commit is contained in:
D. Moonfire 2022-10-12 16:41:53 -05:00
parent f6a481891b
commit 9897d37afb
2 changed files with 12 additions and 1 deletions

View file

@ -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

View file

@ -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