This commit is contained in:
parent
eab2518f18
commit
7e58d481c0
8
Justfile
8
Justfile
|
@ -72,8 +72,8 @@ release-setup: restore-tools restore-packages
|
|||
set -euxo pipefail
|
||||
|
||||
# Verify that all the variables are set.
|
||||
if [ "x$GITEA_TOKEN" = "x" ]; then
|
||||
echo "the environment variable GITEA_TOKEN is not defined"
|
||||
if [ "x$MFGAMES_GITEA_TOKEN" = "x" ]; then
|
||||
echo "the environment variable MFGAMES_GITEA_TOKEN is not defined"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -94,7 +94,7 @@ release-nuget: release-setup
|
|||
dotnet nuget add source \
|
||||
--name publish \
|
||||
--username dmoonfire \
|
||||
--password $GITEA_TOKEN \
|
||||
--password $MFGAMES_GITEA_TOKEN \
|
||||
https://src.mfgames.com/api/packages/mfgames-cil/nuget/index.json \
|
||||
--store-password-in-clear-text
|
||||
dotnet nuget push --skip-duplicate --source publish src/*/bin/*/*.nupkg
|
||||
|
@ -107,7 +107,7 @@ release-tag: release-setup
|
|||
set -euxo pipefail
|
||||
|
||||
git remote remove publish || true
|
||||
git remote add publish https://dmoonfire:$GITEA_TOKEN@src.mfgames.com/mfgames-cil/$(basename $(git config --get remote.origin.url))
|
||||
git remote add publish https://dmoonfire:$MFGAMES_GITEA_TOKEN@src.mfgames.com/mfgames-cil/$(basename $(git config --get remote.origin.url))
|
||||
|
||||
for i in src/*/GitVersion.yml
|
||||
do
|
||||
|
|
Loading…
Reference in a new issue