Skip to content

Commit 510afec

Browse files
Merge pull request #2 from CommunityHiQ/FCOM-287-AH
FCOM-287: Update README and changed CI to create release to GitHub
2 parents 9c3ff2b + 2810f6a commit 510afec

3 files changed

Lines changed: 29 additions & 14 deletions

File tree

.github/workflows/PackAndPushAfterMerge.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,28 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v1
15-
15+
16+
- name: Get version number
17+
id: vars
18+
shell: pwsh
19+
run: |
20+
$version = ([xml]($tmp = Get-Content -Path 'Frends.Community.SQL/Frends.Community.SQL.csproj')).SelectSingleNode("Project/PropertyGroup/Version").InnerText
21+
echo "::set-output name=version_number::$version"
1622
- name: Pack release version of task
1723
run: dotnet pack --configuration Release --include-source
1824

1925
- name: Push NuGet package to the (prod) feed
20-
run: dotnet nuget push Frends.Community.SQL\bin\Release\Frends.Community.SQL.*.nupkg --api-key ${{ secrets.COMMUNITY_FEED_API_KEY }} --source https://www.myget.org/F/frends-community/api/v2/package --symbol-source https://www.myget.org/F/frends-community/symbols/api/v2/package
21-
26+
run: dotnet nuget push Frends.Community.SQL\bin\Release\Frends.Community.SQL.*.nupkg --api-key ${{ secrets.COMMUNITY_FEED_API_KEY }} --source https://www.myget.org/F/frends-community/api/v2/package --symbol-source https://www.myget.org/F/frends-community/symbols/api/v2/package
27+
28+
- name: Create Release
29+
id: create_release
30+
uses: actions/create-release@v1
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
tag_name: ${{ steps.vars.outputs.version_number }}
35+
release_name: Release ${{ steps.vars.outputs.version_number }}
36+
body: |
37+
You can install the task via frends UI Task View or you can find the NuGet package from https://www.myget.org/F/frends-community/api/v2/package/Frends.Community.SQL/${{ steps.vars.outputs.version_number }}
38+
draft: false
39+
prerelease: false

Frends.Community.SQL/Frends.Community.SQL.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<IncludeSource>true</IncludeSource>
1010
<PackageTags>Frends</PackageTags>
1111
<GenerateDocumentationFile>true</GenerateDocumentationFile>
12-
<Version>1.1.1</Version>
12+
<Version>1.1.2</Version>
1313
<AutoGenerateBindingRedirects></AutoGenerateBindingRedirects>
1414
</PropertyGroup>
1515

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,17 @@ Clone a copy of the repo
6565

6666
`git clone https://github.com/CommunityHiQ/Frends.Community.SQL.git`
6767

68-
Restore dependencies
68+
Build the project
6969

70-
`nuget restore`
70+
`dotnet build`
7171

72-
Rebuild the project
72+
Run Tests
7373

74-
Run Tests with MSTest. Tests can be found under
75-
76-
`Frends.Community.SQL.Tests\bin\Release\Frends.Community.SQL.dll`
74+
`dotnet test`
7775

7876
Create a nuget package
7977

80-
`nuget pack Frends.Community.SQL.nuspec`
78+
`dotnet pack --configuration Release`
8179

8280
# Contributing
8381
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
@@ -94,6 +92,5 @@ NOTE: Be sure to merge the latest from "upstream" before making a pull request!
9492

9593
| Version | Changes |
9694
| ---------------------| ---------------------|
97-
| 1.0.0 | Initial version of SaveQueryToCSV task |
98-
| 1.1.0 | Added options for destination file encoding. |
99-
| 1.1.1 | Converted to support .Net Framework 4.7.1 and .Net Standard 2.0. Renamed task. |
95+
| 1.1.1 | Migration from Frends.Community.SQL.QueryToFile. Converted to support .Net Framework 4.7.1 and .Net Standard 2.0. Renamed task. |
96+
| 1.1.2 | Updated README and changed CI to create release in GitHub. |

0 commit comments

Comments
 (0)