build: updating project layout
This commit is contained in:
parent
f6a481891b
commit
9897d37afb
2 changed files with 12 additions and 1 deletions
|
@ -8,6 +8,7 @@ pipeline:
|
||||||
build:
|
build:
|
||||||
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
||||||
commands:
|
commands:
|
||||||
|
- nix profile install 'nixpkgs#fontconfig'
|
||||||
- nix develop --command scripts/build.sh
|
- nix develop --command scripts/build.sh
|
||||||
secrets:
|
secrets:
|
||||||
- gitea_token
|
- gitea_token
|
||||||
|
@ -23,6 +24,7 @@ pipeline:
|
||||||
release:
|
release:
|
||||||
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
||||||
commands:
|
commands:
|
||||||
|
- nix profile install 'nixpkgs#fontconfig'
|
||||||
- nix develop --command scripts/release.sh
|
- nix develop --command scripts/release.sh
|
||||||
secrets:
|
secrets:
|
||||||
- gitea_token
|
- gitea_token
|
||||||
|
|
|
@ -14,9 +14,18 @@ cd $(dirname $(dirname $0))
|
||||||
./scripts/check-env-bucket.sh || exit 1
|
./scripts/check-env-bucket.sh || exit 1
|
||||||
|
|
||||||
# Clean up old versions of the file.
|
# 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*
|
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.
|
# Perform the release process.
|
||||||
log "performing semantic release"
|
log "performing semantic release"
|
||||||
npx semantic-release
|
npx semantic-release
|
||||||
|
|
Loading…
Reference in a new issue