-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from oliverbooth/develop
3.2.0 update
- Loading branch information
Showing
325 changed files
with
27,920 additions
and
1,576 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Publish Documentation | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v3 | ||
- uses: nikeee/[email protected] | ||
name: Build Documentation | ||
with: | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v2 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
|
@@ -26,16 +26,63 @@ jobs: | |
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build -c Debug | ||
run: dotnet build --configuration Debug --no-restore -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }} | ||
|
||
- name: Build NuGet package | ||
run: | | ||
mkdir build | ||
dotnet pack X10D -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.Unity -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D --configuration Debug --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.DSharpPlus --configuration Debug --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.Hosting --configuration Debug --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.Unity --configuration Debug --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly' -p:BuildNumber=${{ github.run_number }} | ||
- name: Push NuGet Package to GitHub | ||
run: dotnet nuget push "build/*" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate | ||
|
||
- name: Push NuGet Package to nuget.org | ||
run: dotnet nuget push "build/*" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build | ||
path: build/ | ||
|
||
- name: Checkout upm branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: upm | ||
path: upm | ||
|
||
- name: Build package.json | ||
run: | | ||
dotnet run --project ./X10D.UpmPackageGenerator/X10D.UpmPackageGenerator.csproj "./X10D/bin/Debug/netstandard2.1/X10D.dll" | ||
cp package.json upm/package.json | ||
- name: Copy built artifacts to upm | ||
run: | | ||
cd upm | ||
cp ../X10D/bin/Debug/netstandard2.1/X10D.dll ./X10D.dll | ||
cp ../X10D/bin/Debug/netstandard2.1/X10D.xml ./X10D.xml | ||
cp ../X10D.Unity/bin/Debug/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll | ||
cp ../X10D.Unity/bin/Debug/netstandard2.1/X10D.Unity.xml ./X10D.Unity.xml | ||
- name: Check for changes | ||
run: | | ||
cd upm | ||
git diff --quiet | ||
continue-on-error: true | ||
|
||
- name: Commit update | ||
if: ${{ success() }} | ||
run: | | ||
cd upm | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add X10D.dll | ||
git add X10D.Unity.dll | ||
git add X10D.xml | ||
git add X10D.Unity.xml | ||
git add package.json | ||
git commit -m "Update upm branch ($GITHUB_SHA)" | ||
git push |
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v2 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
|
@@ -26,22 +26,69 @@ jobs: | |
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build -c Release | ||
run: dotnet build --configuration Release --no-restore -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }} | ||
|
||
- name: Build NuGet package | ||
run: | | ||
mkdir build | ||
dotnet pack X10D -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.Unity -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.DSharpPlus --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.Hosting --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }} | ||
dotnet pack X10D.Unity --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='prerelease' -p:BuildNumber=${{ github.run_number }} | ||
- name: Push NuGet Package to GitHub | ||
run: dotnet nuget push "build/*" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate | ||
|
||
- name: Push NuGet Package to nuget.org | ||
run: dotnet nuget push "build/*" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build | ||
path: build/ | ||
|
||
- name: Create Release | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: true | ||
|
||
- name: Checkout upm branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: upm | ||
path: upm | ||
|
||
- name: Build package.json | ||
run: | | ||
dotnet run --project ./X10D.UpmPackageGenerator/X10D.UpmPackageGenerator.csproj "./X10D/bin/Release/netstandard2.1/X10D.dll" | ||
cp package.json upm/package.json | ||
- name: Copy built artifacts to upm | ||
run: | | ||
cd upm | ||
cp ../X10D/bin/Release/netstandard2.1/X10D.dll ./X10D.dll | ||
cp ../X10D/bin/Release/netstandard2.1/X10D.xml ./X10D.xml | ||
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll | ||
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.xml ./X10D.Unity.xml | ||
- name: Check for changes | ||
run: | | ||
cd upm | ||
git diff --quiet | ||
continue-on-error: true | ||
|
||
- name: Commit update | ||
if: ${{ success() }} | ||
run: | | ||
cd upm | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add X10D.dll | ||
git add X10D.Unity.dll | ||
git add X10D.xml | ||
git add X10D.Unity.xml | ||
git add package.json | ||
git commit -m "Update upm branch ($GITHUB_SHA)" | ||
git push |
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v2 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
|
@@ -26,22 +26,69 @@ jobs: | |
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build -c Release | ||
run: dotnet build --configuration Release --no-restore | ||
|
||
- name: Build NuGet package | ||
run: | | ||
mkdir build | ||
dotnet pack X10D -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build | ||
dotnet pack X10D.Unity -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build | ||
dotnet pack X10D --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build | ||
dotnet pack X10D.DSharpPlus --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build | ||
dotnet pack X10D.Hosting --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build | ||
dotnet pack X10D.Unity --configuration Release --no-build -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build | ||
- name: Push NuGet Package to GitHub | ||
run: dotnet nuget push "build/*" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate | ||
|
||
- name: Push NuGet Package to nuget.org | ||
run: dotnet nuget push "build/*" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build | ||
path: build/ | ||
|
||
- name: Create Release | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
|
||
- name: Checkout upm branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: upm | ||
path: upm | ||
|
||
- name: Build package.json | ||
run: | | ||
dotnet run --project ./X10D.UpmPackageGenerator/X10D.UpmPackageGenerator.csproj "./X10D/bin/Release/netstandard2.1/X10D.dll" | ||
cp package.json upm/package.json | ||
- name: Copy built artifacts to upm | ||
run: | | ||
cd upm | ||
cp ../X10D/bin/Release/netstandard2.1/X10D.dll ./X10D.dll | ||
cp ../X10D/bin/Release/netstandard2.1/X10D.xml ./X10D.xml | ||
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.dll ./X10D.Unity.dll | ||
cp ../X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.xml ./X10D.Unity.xml | ||
- name: Check for changes | ||
run: | | ||
cd upm | ||
git diff --quiet | ||
continue-on-error: true | ||
|
||
- name: Commit update | ||
if: ${{ success() }} | ||
run: | | ||
cd upm | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add X10D.dll | ||
git add X10D.Unity.dll | ||
git add X10D.xml | ||
git add X10D.Unity.xml | ||
git add package.json | ||
git commit -m "Update upm branch ($GITHUB_SHA)" | ||
git push |
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
Oops, something went wrong.