This commit is contained in:
parent
2c5baab8fe
commit
485cc4f831
|
@ -5,6 +5,7 @@ pipeline:
|
|||
image: nixpkgs/nix-flakes
|
||||
commands:
|
||||
- git clone https://dmoonfire:$GITEA_TOKEN@src.mfgames.com/$DRONE_REPO.git .
|
||||
- git pull --tags
|
||||
- git checkout $DRONE_COMMIT
|
||||
secrets:
|
||||
- gitea_token
|
||||
|
@ -29,10 +30,22 @@ pipeline:
|
|||
when:
|
||||
event: [manual, pull_request, push]
|
||||
|
||||
release:
|
||||
publish:
|
||||
image: nixpkgs/nix-flakes
|
||||
commands:
|
||||
- nix develop --command just release
|
||||
- nix develop --command just release-nuget
|
||||
volumes:
|
||||
- woodpecker-nix-store:/nix
|
||||
secrets:
|
||||
- gitea_token
|
||||
when:
|
||||
event: [manual, push]
|
||||
branch: main
|
||||
|
||||
tag:
|
||||
image: nixpkgs/nix-flakes
|
||||
commands:
|
||||
- nix develop --command just release-tag
|
||||
volumes:
|
||||
- woodpecker-nix-store:/nix
|
||||
secrets:
|
||||
|
|
4
Justfile
4
Justfile
|
@ -55,7 +55,7 @@ restore-packages:
|
|||
release: release-setup release-nuget release-tag
|
||||
|
||||
# Makes sure all the release environment variables are set up.
|
||||
release-setup:
|
||||
release-setup: restore-tools restore-packages
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
|
@ -68,7 +68,6 @@ release-setup:
|
|||
# Creates and pushes the NuGet packages.
|
||||
release-nuget: release-setup
|
||||
# Rebuild the package in release mode.
|
||||
dotnet restore
|
||||
dotnet build --configuration Release
|
||||
dotnet pack \
|
||||
-p:IncludeSymbols=true \
|
||||
|
@ -91,7 +90,6 @@ release-tag: release-setup
|
|||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
dotnet tool restore
|
||||
git remote add publish https://dmoonfire:$GITEA_TOKEN@src.mfgames.com/mfgames-cil/$(basename $(git config --get remote.origin.url))
|
||||
|
||||
for i in src/*/GitVersion.yml
|
||||
|
|
Loading…
Reference in a new issue