Merge branch 'main' of https://github.com/vpnhood/VpnHood.Client.App.… #9
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@v3 | |
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 VpnHood.Client.App.Android.Ads.UnityAds | |
- name: Build Solution | |
run: dotnet build VpnHood.Client.App.Android.Ads.UnityAds --no-restore --configuration $BUILD_CONFIG | |
- name: Pack All Projects | |
run: dotnet pack VpnHood.Client.App.Android.Ads.UnityAds --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}} |