Skip to content

Commit

Permalink
Upload artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
keiji committed Aug 5, 2021
1 parent 0d84c29 commit 547dc81
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,41 @@ jobs:
dotnet test
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
pack:
runs-on: macos-latest
needs: [test]
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- name: Setup Xamarin
uses: maxim-lobanov/setup-xamarin@v1
with:
mono-version: 6.12 # specify version in '<major>.<minor>' format
xamarin-ios-version: 14.0 # specify version in '<major>' format
xamarin-mac-version: latest # specify 'latest' keyword to pick up the latest available version
xamarin-android-version: 11.2 # specify full version; it is not recomended option because your pipeline can be broken suddenly in future
xcode-version: 12
- name: Checkout
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2.1.5
env:
cache-name: cache-nuget-packages
with:
path: ${{ github.workspace }}/.nuget/packages
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.csproj') }}
- name: Prepare
run: |
nuget restore
- name: Android
run: |
msbuild ./Chino.Android/Chino.Android.csproj /t:pack /p:Configuration=Release
- name: iOS
run: |
msbuild ./Chino.iOS/Chino.iOS.csproj /t:pack /p:Configuration=Release
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: upload_nuget_packages
path: ${{ github.workspace }}/**/bin/Release/*.nupkg
retention-days: 90

0 comments on commit 547dc81

Please sign in to comment.