-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Disabled unnecessary projects from packing * Update Directory.Build.props * Renamed projectfile * Update Draco.sln * Update Draco.ProjectTemplates.csproj * Almost working * Fix incorrect packaging * package icon removed * Create PackageIcon.png * Update Directory.Build.props * Create publish.yaml * Update Draco.LanguageServer.csproj * Update Directory.Build.props Co-authored-by: John Tur <[email protected]>
- Loading branch information
1 parent
f536fa0
commit b7386ff
Showing
14 changed files
with
97 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
* text eol=lf | ||
*.png binary |
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,48 @@ | ||
# Publish everything to NuGet | ||
|
||
name: 'Publish packages' | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
DOTNET_VERSION: '7.0.x' # The .NET SDK version to use | ||
CONFIGURATION: 'Release' # The configuration to use | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} | ||
|
||
jobs: | ||
deployment: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Clone the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: dotnet restore ./src | ||
|
||
- name: Build | ||
run: dotnet build ./src --configuration ${{ env.CONFIGURATION }} --no-restore | ||
|
||
- name: Package | ||
run: dotnet pack ./src /p:PackageReleaseNotes="See https://github.com/Draco-lang/Compiler/releases/tag/${{ github.event.release.tag_name }}" | ||
|
||
- name: Upload to GitHub | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Draco | ||
path: src/**/*${{ github.event.release.tag_name }}.nupkg | ||
|
||
- name: Upload to NuGet.org | ||
run: dotnet nuget push src/**/*${{ github.event.release.tag_name }}.nupkg --api-key ${{ env.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json --no-symbols true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
src/Draco.ProjectTemplates/Draco.ProjectTemplates.msbuildproj
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,31 @@ | ||
<Project Sdk="Microsoft.Build.NoTargets/3.7.0"> | ||
|
||
<PropertyGroup> | ||
<PackageType>Template</PackageType> | ||
<Description>Default Draco project templates.</Description> | ||
<PackageTags>dotnet-new;templates;Draco</PackageTags> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
|
||
<IncludeBuildOutput>false</IncludeBuildOutput> | ||
<NoWarn>$(NoWarn);NU5128</NoWarn> | ||
|
||
<!-- Workaround for project system bug --> | ||
<DisableFastUpToDateCheck>false</DisableFastUpToDateCheck> | ||
</PropertyGroup> | ||
|
||
<Target Name="PackTemplatesWithReplacedVersion" BeforeTargets="Build"> | ||
<ItemGroup> | ||
<_File Include="templates\**\*.*" /> | ||
</ItemGroup> | ||
|
||
<WriteLinesToFile File="$(BaseIntermediateOutputPath)templates\%(_File.RecursiveDir)%(_File.Filename)%(_File.Extension)" | ||
Lines="$([System.IO.File]::ReadAllText('%(_File.FullPath)').Replace('#{DRACO_VERSION}', '$(Version)'))" | ||
Overwrite="true" | ||
Encoding="UTF-8" /> | ||
|
||
<ItemGroup> | ||
<None Include="$(BaseIntermediateOutputPath)templates\**\*.*" Pack="true" PackagePath="templates" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
</Project> |
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 |
---|---|---|
|
@@ -44,7 +44,7 @@ | |
"path": "./main.draco" | ||
}, | ||
{ | ||
"path": "./DracoConsole.dracoproj" | ||
"path": "./ConsoleApplication.dracoproj" | ||
} | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
.../templates/console/DracoConsole.dracoproj → ...ates/console/ConsoleApplication.dracoproj
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
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