Добавлена лицензия и ci
This commit is contained in:
@@ -21,7 +21,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
dotnet: [ '8.0.x' ]
|
||||
dotnet: [ '9.0.x' ]
|
||||
|
||||
name: .Net ${{ matrix.dotnet }} Release
|
||||
steps:
|
||||
@@ -100,9 +100,10 @@ jobs:
|
||||
with:
|
||||
dotnet-version: ${{ matrix.dotnet }}
|
||||
|
||||
- name: Установка версии RetailUpdatesBot
|
||||
- name: Установка версии PipelineFramework
|
||||
run: |
|
||||
sed -i "s/<Version>.*<\/Version>/<Version>${{ env.VERSION }}<\/Version>/g" ./RetailUpdatesBot/RetailUpdatesBot.csproj
|
||||
sed -i "s/<Version>.*<\/Version>/<Version>${{ env.VERSION }}<\/Version>/g" ./src/PipelineFramework/PipelineFramework.csproj
|
||||
sed -i "s/<Version>.*<\/Version>/<Version>${{ env.VERSION }}<\/Version>/g" ./src/PipelineFramework.DI/PipelineFramework.DI.csproj
|
||||
|
||||
- name: Восстановление зависимостей
|
||||
run: dotnet restore --nologo
|
||||
@@ -110,23 +111,10 @@ jobs:
|
||||
- name: Сборка решения
|
||||
run: dotnet build --no-restore --nologo
|
||||
|
||||
- name: Публикация
|
||||
run: dotnet publish RetailUpdatesBot --configuration Release --runtime win-x64 --artifacts-path artifacts --nologo
|
||||
- name: Упаковка
|
||||
run: dotnet pack -c Release --no-build -o ./artifacts
|
||||
|
||||
- name: Создание ZIP архива
|
||||
run: |
|
||||
cd artifacts/publish/RetailUpdatesBot/release_win-x64/
|
||||
zip -r ../RetailUpdatesBot-v${{ env.VERSION }}.zip *
|
||||
cd ..
|
||||
echo "ZIP_PATH=RetailUpdatesBot-v${{ env.VERSION }}.zip" >> $GITHUB_ENV
|
||||
|
||||
- name: Создание релиза
|
||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
||||
- name: Push to nuget
|
||||
env:
|
||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||
with:
|
||||
files: artifacts/publish/RetailUpdatesBot/RetailUpdatesBot-v${{ env.VERSION }}.zip
|
||||
tag_name: v${{ env.VERSION }}
|
||||
name: RetailUpdatesBot-v${{ env.VERSION }}
|
||||
body: "## Что нового\n\n- Описание изменений\n- Функциональность\n- Исправления"
|
||||
prerelease: ${{ env.PRE_RELEASE }}
|
||||
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
|
||||
run: dotnet nuget push ./artifacts/*.nupkg --source https://gitea.example.com/api/packages/FrigaT/nuget/index.json --api-key $NUGET_API_KEY
|
||||
Reference in New Issue
Block a user