1 Star 0 Fork 0

yangming886/Modbus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.gitlab-ci.yml 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
Andreas Mueller 提交于 2021-04-30 01:47 . Bumping to version 1.1
image: mcr.microsoft.com/dotnet/sdk:latest
stages:
- build
- deploy
build:
stage: build
tags:
- docker
script:
- cat $NUGET_CONFIG > nuget.config
- dotnet restore
- dotnet build --no-restore -c Release
- dotnet nuget push -s amget -k $AMGET_API_KEY --skip-duplicate src/Modbus.Common/bin/Release/*.nupkg
- dotnet nuget push -s amget -k $AMGET_API_KEY --skip-duplicate src/Modbus.Tcp/bin/Release/*.nupkg
- dotnet nuget push -s amget -k $AMGET_API_KEY --skip-duplicate src/Modbus.Serial/bin/Release/*.nupkg
- dotnet nuget push -s amget -k $AMGET_API_KEY --skip-duplicate src/Modbus.Proxy/bin/Release/*.nupkg
artifacts:
paths:
- src/Modbus.Common/bin/Release/*.nupkg
- src/Modbus.Common/bin/Release/*.snupkg
- src/Modbus.Tcp/bin/Release/*.nupkg
- src/Modbus.Tcp/bin/Release/*.snupkg
- src/Modbus.Serial/bin/Release/*.nupkg
- src/Modbus.Serial/bin/Release/*.snupkg
- src/Modbus.Proxy/bin/Release/*.nupkg
- src/Modbus.Proxy/bin/Release/*.snupkg
expire_in: 1 month
deploy:
stage: deploy
tags:
- docker
only:
- tags
script:
- cat $NUGET_CONFIG > nuget.config
- dotnet restore
- dotnet build --no-restore -c Release
- dotnet nuget push -s nuget -k $NUGET_API_KEY --skip-duplicate src/Modbus.Common/bin/Release/*.nupkg
- dotnet nuget push -s nuget -k $NUGET_API_KEY --skip-duplicate src/Modbus.Tcp/bin/Release/*.nupkg
- dotnet nuget push -s nuget -k $NUGET_API_KEY --skip-duplicate src/Modbus.Serial/bin/Release/*.nupkg
- dotnet nuget push -s nuget -k $NUGET_API_KEY --skip-duplicate src/Modbus.Proxy/bin/Release/*.nupkg
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangming886/Modbus.git
git@gitee.com:yangming886/Modbus.git
yangming886
Modbus
Modbus
master

搜索帮助