Skip to content

Clean up some infra stuff. #19

Clean up some infra stuff.

Clean up some infra stuff. #19

Workflow file for this run

name: Build
on: [push, pull_request ]
jobs:
build:
runs-on: ubuntu-22.04
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
steps:
- name: Install .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: Fetch sources
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run tests
run: |
LIBSSH_PATH=runtimes/ubuntu.22.04-x64/native/libssh-ubuntu.22.04-x64.so dotnet test test/Tmds.Ssh.Tests
- name: Build packages
run: |
VERSION_SUFFIX="${{ github.run_number }}-${{ github.sha }}"
dotnet pack src/Tmds.Ssh --configuration Release --output src/Tmds.Ssh /p:VersionSuffix="$VERSION_SUFFIX"
- name: Publish packages
run: |
dotnet nuget push -s https://www.myget.org/F/tmds/api/v2/package -k "${{ secrets.NUGET_APIKEY }}" src/Tmds.Ssh/*.nupkg
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}