Skip to content

Update docs, CI/CD, packaging, and add Russian README #1

Update docs, CI/CD, packaging, and add Russian README

Update docs, CI/CD, packaging, and add Russian README #1

Workflow file for this run

name: CI/CD
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
publish:
runs-on: ubuntu-latest
needs: build-and-test
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
- name: Build and Pack TonapiClient
run: |
dotnet restore src/TonapiClient/TonapiClient.csproj
dotnet build src/TonapiClient/TonapiClient.csproj --no-restore --configuration Release
dotnet pack src/TonapiClient/TonapiClient.csproj --no-build --configuration Release --output ./artifacts
- name: Publish to NuGet
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate