Skip to content

Commit

Permalink
Add copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmfinol committed Oct 24, 2023
1 parent 679eabe commit c93e0e7
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
44 changes: 42 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ on:
- published

jobs:
build:

build:
runs-on: ubuntu-latest

outputs:
version: ${{ steps.versioning.outputs.version }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand All @@ -35,6 +36,11 @@ jobs:
dotnet-version: 6.0.x
- name: Build
run: dotnet build --configuration Release /p:Version=${VERSION}
- name: Upload FinolDigital.Cgs.CardGameDef.dll
uses: actions/upload-artifact@v3
with:
name: FinolDigital.Cgs.CardGameDef.dll
path: FinolDigital.Cgs.CardGameDef/bin/Release/netstandard2.1/FinolDigital.Cgs.CardGameDef.dll
- name: Generate schema
run: dotnet SchemaGeneration/bin/Release/net6.0/SchemaGeneration.dll
- name: Upload CardGameDef.json
Expand All @@ -55,3 +61,37 @@ jobs:
- name: Push nuget package
if: github.event.action == 'published'
run: dotnet nuget push "FinolDigital.Cgs.CardGameDef/bin/Release/FinolDigital.Cgs.CardGameDef.${VERSION}.nupkg" --source "github"

updateCgs:
name: Update CGS
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
path: FinolDigital.Cgs.CardGameDef
- name: Checkout CGS project
uses: actions/checkout@v3
with:
repository: finol-digital/Card-Game-Simulator
token: ${{ secrets.CGS_PAT }}
path: Card-Game-Simulator
lfs: true
- name: Download FinolDigital.Cgs.CardGameDef.dll
uses: actions/download-artifact@v3
with:
name: FinolDigital.Cgs.CardGameDef.dll
path: Card-Game-Simulator/Assets/Plugins
- name: Download CardGameDef.json
uses: actions/download-artifact@v3
with:
name: CardGameDef.json
path: Card-Game-Simulator/docs/schema
- name: Raise PR to Card-Game-Simulator
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.CGS_PAT }}
path: Card-Game-Simulator
branch: ${{ needs.build.outputs.version }}
title: ${{ needs.build.outputs.version }}
5 changes: 5 additions & 0 deletions FinolDigital.Cgs.CardGameDef/CardGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ public class CardGame
"cgsGamesLink is a clickable url that will take the user directly to this game on the CGS Games website, which can be shared between users.")]
public Uri? CgsGamesLink { get; set; }

[JsonProperty]
[Description(
"copyright indicates the legal owner of this Card Game. CGS will display this value in the bottom-left corner of the Main Menu.")]
public string Copyright { get; set; } = "";

[JsonProperty]
[Description(
"When saving or loading a deck with <deckFileType> NOT txt, deckFileAltId refers to the *Card:Property* used to uniquely identify each Card. For hsd, this is stored as a varint within the deck string.")]
Expand Down

0 comments on commit c93e0e7

Please sign in to comment.