This commit is contained in:
@@ -1,33 +1,33 @@
|
|||||||
# name: release
|
name: release
|
||||||
# on:
|
on:
|
||||||
# push:
|
push:
|
||||||
# branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
# pull_request:
|
pull_request:
|
||||||
# branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
# env:
|
env:
|
||||||
# ASPNETCORE_ENVIRONMENT: Production
|
ASPNETCORE_ENVIRONMENT: Production
|
||||||
|
|
||||||
# jobs:
|
jobs:
|
||||||
# release:
|
release:
|
||||||
# name: check and build
|
name: check and build
|
||||||
# runs-on: g7s
|
runs-on: g7s
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# with:
|
with:
|
||||||
# fetch-depth: 0 # all history for all branches and tags
|
fetch-depth: 0 # all history for all branches and tags
|
||||||
# - name: Setup .NET Core
|
- name: Setup .NET Core
|
||||||
# uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
# with:
|
with:
|
||||||
# dotnet-version: 8.0.x
|
dotnet-version: 8.0.x
|
||||||
# - name: Install telegram bot library
|
- name: Install telegram bot library
|
||||||
# run: dotnet nuget add source https://pkgs.dev.azure.com/tgbots/Telegram.Bot/_packaging/release/nuget/v3/index.json -n Telegram.Bot
|
run: dotnet nuget add source https://pkgs.dev.azure.com/tgbots/Telegram.Bot/_packaging/release/nuget/v3/index.json -n Telegram.Bot
|
||||||
# - name: dotnet restore
|
- name: dotnet restore
|
||||||
# run: dotnet restore
|
run: dotnet restore
|
||||||
# - name: dotnet build
|
- name: dotnet build
|
||||||
# run: dotnet build --no-restore -c Release
|
run: dotnet build --no-restore -c Release
|
||||||
# - name: dotnet publish
|
- name: dotnet publish
|
||||||
# run: |
|
run: |
|
||||||
# pushd src
|
pushd src
|
||||||
# dotnet publish -c Release -r linux-x64 --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=false /p:EnableCompressionInSingleFile=true
|
dotnet publish -c Release -r linux-x64 --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=false /p:EnableCompressionInSingleFile=true
|
||||||
# popd
|
popd
|
||||||
|
Reference in New Issue
Block a user