-
-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (27 loc) · 940 Bytes
/
mobile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Mobile
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
jobs:
Build_Android:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Restore NuGet
run: |
nuget restore
- name: Inject Token
env:
TOKEN: ${{ secrets.TOKEN }}
run: |
GitHubConstantsFile=`find . -name GitHubConstants.cs | head -1`
echo GitHubConstantsFile = $GitHubConstantsFile
sed -i '' "s/PersonalAccessToken = \"\"/PersonalAccessToken = \"$TOKEN\"/g" "$GitHubConstantsFile"
sed -i '' "s/#error Missing Token/\/\/##error Missing Token/g" "$GitHubConstantsFile"
- name: Build Android App
run: |
msbuild ./SimpleXamarinGraphQL.Android/SimpleXamarinGraphQL.Android.csproj /verbosity:normal /p:Configuration=Release