Created
June 9, 2020 01:04
-
-
Save davamix/238fde379870c1d4f11d7a632493c0ea to your computer and use it in GitHub Desktop.
GitHub Actions: Build a Xamarin.Forms project and create the APK
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: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
# Build App | |
build: | |
runs-on: windows-latest | |
env: | |
SERVICE_APP_KEY: ${{ secrets.SERVICE_APP_KEY }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup MSBuild | |
uses: microsoft/[email protected] | |
- name: Build Solution | |
run: msbuild ./MyApplication.sln /restore /p:Configuration=Release | |
- name: Create and Sign the APK | |
run: msbuild MyApplication\MyApplication.Android\MyApplication.Android.csproj /t:SignAndroidPackage /p:Configuration=Release /p:OutputPath=bin\Release\ | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: MyApplication.apk | |
path: MyApplication\MyApplication.Android\bin\Release\com.companyname.myapplication-Signed.apk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That was helpful, here is an update