Watch
2
0
Fork
You've already forked raylib-cs
0

ci: pack android project

This commit is contained in:
anggape 2023-08-23 12:57:34 +07:00
commit a06cb41439
No known key found for this signature in database
GPG key ID: 318EF680D0181D86

View file

@ -177,6 +177,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- prepare - prepare
- build-android
- build-linux - build-linux
- build-osx - build-osx
- build-windows - build-windows
@ -184,6 +185,26 @@ jobs:
- name: checkout repository - name: checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: android-arm
path: Raylib-cs.Android/runtimes/android-arm/native
- uses: actions/download-artifact@v3
with:
name: android-arm64
path: Raylib-cs.Android/runtimes/android-arm64/native
- uses: actions/download-artifact@v3
with:
name: android-x86
path: Raylib-cs.Android/runtimes/android-x86/native
- uses: actions/download-artifact@v3
with:
name: android-x64
path: Raylib-cs.Android/runtimes/android-x64/native
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
with: with:
name: linux-x64 name: linux-x64
@ -215,22 +236,22 @@ jobs:
dotnet-version: 6.0.x dotnet-version: 6.0.x
- name: Create NuGet Package - name: Create NuGet Package
run: dotnet pack -c Release Raylib-cs run: dotnet pack -c Release --output nuget
- name: Upload NuGet Package As Artifact - name: Upload NuGet Package As Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
path: Raylib-cs/bin/Release/Raylib-cs.${{ needs.prepare.outputs.pkgversion }}.*pkg path: nuget/*
- name: Upload NuGet Package As Release - name: Upload NuGet Package As Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
files: Raylib-cs/bin/Release/Raylib-cs.${{ needs.prepare.outputs.pkgversion }}.*pkg files: nuget/*
- name: Publish to NuGet - name: Publish to NuGet
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
run: | run: |
dotnet nuget push \ dotnet nuget push \
Raylib-cs/bin/Release/Raylib-cs.${{ needs.prepare.outputs.pkgversion }}.nupkg \ nuget/* \
--api-key ${{secrets.NUGET_API_KEY}} --api-key ${{secrets.NUGET_API_KEY}}