ci: pack android project
This commit is contained in:
parent
3d8b350b6d
commit
a06cb41439
1 changed files with 25 additions and 4 deletions
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
|
|
@ -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}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue