|
1 | 1 | # Publishing (for Maintainers) |
2 | 2 |
|
3 | | -## GitHub Release (Self-Contained Binary) |
4 | | - |
5 | | -The GitHub `release.yml` workflow takes care of running this project to produce binaries for each platform and then |
| 3 | +The GitHub `release.yml` workflow takes care of running this project to produce binaries and then |
6 | 4 | signs them before uploading a new release. |
7 | 5 |
|
8 | | -If this is not available, and we need to publish locally: |
| 6 | +To publish locally: |
| 7 | + |
9 | 8 | Install the `gpg` utility to let the publish process sign release artifacts with your personal key. |
10 | 9 |
|
11 | 10 | ```shell |
12 | 11 | dotnet run |
13 | 12 | ``` |
14 | 13 |
|
15 | | -Artifacts are signed with the default key which you have configured (or the first secret key it finds). |
16 | | - |
17 | | -## Dotnet Tool |
18 | | - |
19 | | -```shell |
20 | | -PACK_DIR=bin/pack |
21 | | -BUILD_DIR=$PACK_DIR/build |
22 | | -dotnet pack ../ucll/ucll.csproj \ |
23 | | - -p:PackAsTool=true \ |
24 | | - -p:ToolCommandName=ucll \ |
25 | | - -p:PackageId=UnityCommandLineLauncher \ |
26 | | - -p:Authors="Chris Yarbrough" \ |
27 | | - -p:PackageLicenseExpression=MIT \ |
28 | | - -p:PackageReadmeFile=README.md \ |
29 | | - -p:PackageTags="Unity CLI Hub" \ |
30 | | - -p:RepositoryUrl=https://github.com/chrisyarbrough/UnityCommandLineLauncher \ |
31 | | - -p:RepositoryType=git \ |
32 | | - -p:OutputPath=$BUILD_DIR \ |
33 | | - -p:PublishDir=$BUILD_DIR \ |
34 | | - --output ../ucll/$PACK_DIR |
35 | | -``` |
36 | | - |
37 | | -```shell |
38 | | -dotnet nuget push ../ucll/bin/pack/UnityCommandLineLauncher.*.nupkg --api-key <your-key> --source https://apiint.nugettest.org/v3/index.json |
39 | | -``` |
40 | | - |
41 | | -``` |
42 | | -https://api.nuget.org/v3/index.json |
43 | | -``` |
| 14 | +Artifacts are signed with the default key which you have configured (or the first secret key it finds). |
0 commit comments