-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
194c2e5
commit b528cf2
Showing
5 changed files
with
76 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "Commit generated C# code" | ||
name: "Commit generated code" | ||
|
||
on: | ||
workflow_call: | ||
|
@@ -22,11 +22,11 @@ jobs: | |
uses: actions/download-artifact@v1 | ||
with: | ||
name: "bindgen-cs" | ||
path: "./src/cs/production/ImGui" | ||
path: "./src/cs/production/Interop.ImGui" | ||
|
||
- name: "Add + commit + push (if necessary)" | ||
uses: EndBug/add-and-commit@v7 | ||
with: | ||
author_name: 'lithiumtoast' | ||
author_email: '[email protected]' | ||
author_email: '519592+[email protected]' | ||
message: "Update C# bindings" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: "Release" | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 1 * *" # First day of every month | ||
|
||
jobs: | ||
|
||
build-job: | ||
name: "Build" | ||
uses: "./.github/workflows/build.yml" | ||
|
||
release-job: | ||
name: "Release .NET solution" | ||
needs: [build-job] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: "Clone Git repository" | ||
uses: actions/checkout@master | ||
with: | ||
submodules: "recursive" | ||
|
||
- name: "Download native libraries (win-x64)" | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: "native-libraries-win-x64" | ||
path: "./lib" | ||
|
||
- name: "Download native libraries (osx)" | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: "native-libraries-osx" | ||
path: "./lib" | ||
|
||
- name: "Download native libraries (linux-x64)" | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: "native-libraries-linux-x64" | ||
path: "./lib" | ||
|
||
- name: ".NET pack" | ||
run: dotnet pack "./src/cs" --nologo --verbosity minimal --configuration Release -p:PackageVersion="$(date +'%Y.%m.%d')" -p:RepositoryBranch="${{ github.head_ref || github.ref_name }}" -p:RepositoryCommit="${{ github.sha }}" | ||
|
||
- name: "Upload packages to MyGet" | ||
if: github.event_name == 'workflow_dispatch' | ||
env: | ||
MYGET_ACCESS_TOKEN: ${{ secrets.MYGET_ACCESS_TOKEN }} | ||
run: dotnet nuget push "./nupkg/**/*.nupkg" --source https://www.myget.org/F/bottlenoselabs/api/v3/index.json --skip-duplicate --api-key $MYGET_ACCESS_TOKEN | ||
|
||
- name: "Upload packages to NuGet" | ||
if: github.event_name == 'schedule' | ||
env: | ||
NUGET_ACCESS_TOKEN: ${{ secrets.NUGET_ACCESS_TOKEN }} | ||
run: dotnet nuget push "./nupkg/**/*.nupkg" --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key $NUGET_ACCESS_TOKEN |