Skip to content

Commit d6c9880

Browse files
committed
Add the editor build
1 parent 7dbccab commit d6c9880

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

.github/workflows/build-and-test.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ env:
55
BuildVersion: '0.40.${{github.run_number}}'
66
SolutionFile: 'src/OpenRpg.sln'
77
DemoProject: 'src/OpenRpg.Demos.Web/OpenRpg.Demos.Web.csproj'
8+
EditorProject: 'src/OpenRpg.Editor/OpenRpg.Editor.csproj'
89

910
jobs:
1011
build-and-test:
@@ -53,6 +54,7 @@ jobs:
5354

5455
build-demos:
5556
runs-on: ubuntu-latest
57+
if: startsWith(github.event.ref, 'refs/tags/')
5658
permissions:
5759
pages: write
5860
id-token: write
@@ -79,6 +81,31 @@ jobs:
7981

8082
- name: Deploy Demo to GitHub Pages
8183
uses: actions/deploy-pages@v4
84+
85+
86+
87+
build-editor:
88+
runs-on: windows-latest
89+
needs: [build-and-test]
90+
steps:
91+
- uses: actions/checkout@v3
92+
93+
- name: Setup .NET 9.0
94+
uses: actions/setup-dotnet@v2
95+
with:
96+
dotnet-version: 9.0.x
97+
98+
- name: Build Editor App
99+
run: dotnet publish -c Release -r win-x64 --sc /p:Version=${{ env.BuildVersion }} -o editor "${{ env.EditorProject }}"
100+
101+
- name: Package Editor App
102+
run: Compress-Archive -Path editor/* -Destination editor-${{env.BuildVersion}}.zip
103+
104+
- name: Publish Editor Artifact
105+
- uses: actions/upload-artifact@v4
106+
with:
107+
name: editor-app
108+
path: /editor-${{env.BuildVersion}}.zip
82109

83110
package-and-release:
84111
runs-on: windows-latest
@@ -96,5 +123,5 @@ jobs:
96123
- name: .Net Pack
97124
run: dotnet pack --configuration Release /p:Version=${{ env.BuildVersion }} --no-build ${{ env.SolutionFile }}
98125

99-
# - name: Publish To Nuget
100-
# run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
126+
- name: Publish To Nuget
127+
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ statsPopulator.Populate(stats, new [] { raceEffects, classEffects });
4444
4545
As you can see above an effect can describe any effect on an entity, and the effect types can be anything you want, the above examples are `EffectTypes` within the `OpenRpg.Genres.Fantasy` library, but each genre contains its own effect types and population logic to turn effects into variables.
4646

47-
> For more info view the [Demo Section On Stats/Effects Here](https://openrpg.github.io/OpenRpg.Demos.Web)
47+
> For more info view the [Demo Section On Stats/Effects Here](https://openrpg.github.io/OpenRpg)
4848
4949
### Variables
5050

0 commit comments

Comments
 (0)