Skip to content

Commit 23204bf

Browse files
Fixed csproj
1 parent 7bfc6eb commit 23204bf

2 files changed

Lines changed: 66 additions & 2 deletions

File tree

.github/workflows/package.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: "Deploy to NuGet"
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
env:
9+
PROJECT_PATH: 'EZCode/EZCode.csproj'
10+
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output
11+
NUGET_SOURCE_URL: 'https://api.nuget.org/v3/index.json'
12+
13+
jobs:
14+
deploy:
15+
name: 'Deploy'
16+
runs-on: 'windows-latest'
17+
steps:
18+
- name: 'Checkout'
19+
uses: actions/checkout@v2
20+
21+
- name: 'Install dotnet'
22+
uses: actions/setup-dotnet@v1
23+
with:
24+
dotnet-version: '3.1.x'
25+
26+
- name: 'Restore packages'
27+
run: dotnet restore ${{ env.PROJECT_PATH }}
28+
29+
- name: 'Build project'
30+
run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release
31+
32+
- name: 'Get Version'
33+
id: version
34+
uses: battila7/get-version-action@v2
35+
36+
- name: 'Pack project'
37+
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
38+
39+
- name: 'Push package'
40+
run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg -k ${{ secrets.NUGET_AUTH_TOKEN }} -s ${{ env.NUGET_SOURCE_URL }}
41+
42+
43+
44+
45+
46+
47+
# Yaml for Automatic Releasing. Disabled for variuos reasons.
48+
49+
#name: Release
50+
#
51+
#on:
52+
# push:
53+
# tags:
54+
# - "V*"
55+
#
56+
#jobs:
57+
# release:
58+
# name: "Release"
59+
# runs-on: "ubuntu-latest"
60+
# steps:
61+
# - uses: "marvinpinto/action-automatic-release@latest"
62+
# with:
63+
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
64+
# prerelease: false

EZCode/EZCode.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<Title>EZCode WinForms Programming Language</Title>
8-
<Version>2.1.2</Version>
8+
<Version>2.1.3</Version>
99
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
1010
<Description>EZCode is a easy to ue programming language for WinForms and can help speed up your development process. Go to https://ez-code.web.app</Description>
1111
<Copyright>Copyright © 2023</Copyright>
@@ -18,7 +18,7 @@
1818
<PackageReleaseNotes>Version 2.0.1</PackageReleaseNotes>
1919
<PackageLicenseFile>LICENSE</PackageLicenseFile>
2020
<Company>JBros Development</Company>
21-
<Authors>JBros Development;</Authors>
21+
<Authors>Joseph H;</Authors>
2222
</PropertyGroup>
2323

2424
<ItemGroup>

0 commit comments

Comments
 (0)