Merge branch 'main' of https://github.com/vpnhood/VpnHood.Client.App.… #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Nugets | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
env: | |
BUILD_CONFIG: 'Release' | |
PROJECT_NAME: 'DotNet/VhInMobi' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Bump versions | |
uses: SiqiLu/[email protected] | |
with: | |
version_files: "**/*.InMobi.csproj" | |
version_mask: 0.0.1.0 | |
version_overwrite: "*.*.*.*" | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v2 | |
- name: Android SDK | |
run: dotnet workload install android | |
- name: Restore dependencies | |
run: dotnet restore $PROJECT_NAME | |
- name: Build Solution | |
run: dotnet build $PROJECT_NAME --no-restore --configuration $BUILD_CONFIG | |
- name: Pack All Projects | |
run: dotnet pack $PROJECT_NAME --configuration $BUILD_CONFIG -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg | |
- name: Publish | |
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY_ADS}} |