Skip to content

Commit

Permalink
last fix maybe :D
Browse files Browse the repository at this point in the history
  • Loading branch information
SaViGnAnO authored Sep 24, 2021
1 parent c9d3269 commit 21d20ba
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@ on:
jobs:
build:
runs-on: windows-2022
defaults:
run:
shell: pwsh
working-directory: ./Maui.CameraTools
steps:
- name: Install Required Workloads
run: dotnet workload install --no-cache --disable-parallel android-aot ios maccatalyst maui wasm-tools --skip-manifest-update --source "https://api.nuget.org/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-rc.1.21458.32-shipping/nuget/v3/index.json"
shell: pwsh
- name: Restore Dependencies
run: dotnet restore
- name: Build
run: dotnet restore Maui.CameraTools.csproj
- name: Build Solution
run: |
$VERSION=$env:GITHUB_REF.Substring($env:GITHUB_REF.LastIndexOf('/') + 1)
echo "PACKAGE VERSION: $VERSION"
dotnet build --no-restore -p:PackageVersion=$VERSION
- name: Pack
run: dotnet pack --include-symbols -o ./nuget
# - name: Publish
dotnet build --no-restore -p:PackageVersion=$VERSION Maui.CameraTools.scsproj
- name: Pack Nuget Package
run: dotnet pack --include-symbols -o ./nuget Maui.CameraTools.scsproj
# - name: Publish Nuget Package
# run: dotnet nuget push .\nuget\*.nupkg -s "nuget.org" -k ${{ secrets.NUGET_API_KEY }}

0 comments on commit 21d20ba

Please sign in to comment.