Skip to content

Commit 94c14cb

Browse files
committed
- try pass csproj property from cli
1 parent a9cc709 commit 94c14cb

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/publish-nuget.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,15 @@ jobs:
5656
run: |
5757
cp src/qs/MapboxMauiQs/MauiProgram.dev.cs.example src/qs/MapboxMauiQs/MauiProgram.dev.cs
5858
59-
- name: Create MapboxMauiQs.props
60-
run: |
61-
echo ${{ secrets.PROJECT_PROPS }} > src/qs/MapboxMauiQs/MapboxMauiQs.props
59+
# - name: Create MapboxMauiQs.props
60+
# run: |
61+
# echo "${{ secrets.PROJECT_PROPS }}" > src/qs/MapboxMauiQs/MapboxMauiQs.props
6262

6363
- name: Build
6464
run: |
6565
sh build.sh
66+
env:
67+
MAPBOX_DOWNLOADS_TOKEN : ${{ secrets.MAPBOX_DOWNLOADS_TOKEN }}
6668

6769
- name: Publish NuGet and symbols
6870
id: nuget-push

build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
dotnet nuget locals -c all
22

33
# Build to trigger gradle process
4-
dotnet build -t:Clean,Rebuild src/qs/MapboxMauiQs/MapboxMauiQs.csproj
4+
dotnet build -t:Clean,Rebuild src/qs/MapboxMauiQs/MapboxMauiQs.csproj \
5+
-property:MAPBOX_DOWNLOADS_TOKEN=$MAPBOX_DOWNLOADS_TOKEN
56

67
dotnet pack -c Release -t:Clean,Rebuild mapbox-maui.sln --output $PWD/nugets

0 commit comments

Comments
 (0)