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' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Bump versions | |
uses: SiqiLu/[email protected] | |
with: | |
version_files: "**/VpnHood.Client.App.Android.Ads.UnityAds.csproj" | |
version_mask: 0.0.1.0 | |
version_overwrite: "*.*.*.*" | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Android SDK | |
run: dotnet workload install android | |
- name: Build Solution | |
run: dotnet build --no-restore --configuration $BUILD_CONFIG | |
- name: Pack All Projects | |
run: dotnet pack --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}} |