Skip to content

Commit 454698f

Browse files
committed
Update actions
1 parent 5a1e712 commit 454698f

File tree

6 files changed

+56
-43
lines changed

6 files changed

+56
-43
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
name: Build
1+
name: build
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [main]
66
paths-ignore:
7-
- 'docs/**'
8-
- 'readme.md'
7+
- "docs/**"
8+
- "readme.md"
99

1010
pull_request:
11-
branches: [ master ]
11+
branches: [main]
1212

1313
jobs:
1414
build:
15-
1615
runs-on: ubuntu-latest
1716

1817
steps:
19-
- uses: actions/checkout@v2
20-
- name: Setup .NET Core
21-
uses: actions/setup-dotnet@v1
22-
- name: Install dependencies
23-
run: dotnet restore
24-
- name: Build
25-
run: dotnet build --configuration Release --no-restore
26-
- name: Test
27-
run: dotnet test --no-restore
18+
- uses: actions/checkout@v2
19+
- name: Setup .NET Core
20+
uses: actions/setup-dotnet@v1
21+
- name: Install dependencies
22+
run: dotnet restore
23+
- name: Build
24+
run: dotnet build --configuration Release --no-restore
25+
- name: Test
26+
run: dotnet test --no-restore --no-build

.github/workflows/publish.yml

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,34 @@ name: publish
22

33
on:
44
push:
5-
branches: [ release/1.x ]
5+
tags:
6+
- v*
67

78
jobs:
8-
build:
9-
9+
publish:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2
14-
- name: Setup .NET Core
15-
uses: actions/setup-dotnet@v1
16-
- name: Install dependencies
17-
run: dotnet restore
18-
- name: Build
19-
run: dotnet build --configuration Release --no-restore
20-
- name: Test
21-
run: dotnet test --no-restore
22-
- name: Pack with dotnet
23-
run: dotnet pack --output artifacts --configuration Release
24-
- name: Push with dotnet
25-
run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.API_KEY }} --source https://api.nuget.org/v3/index.json
26-
- name: Archive artifacts
27-
uses: actions/upload-artifact@v1
28-
with:
29-
name: artifacts
30-
path: artifacts
13+
- uses: actions/checkout@v2
14+
- name: Setup .NET Core
15+
uses: actions/setup-dotnet@v1
16+
- name: Install dependencies
17+
run: dotnet restore
18+
- name: Build
19+
run: dotnet build --configuration Release --no-restore
20+
- name: Test
21+
run: dotnet test --no-restore --no-build
22+
- name: Pack
23+
run: |
24+
arrTag=(${GITHUB_REF//\// })
25+
VERSION="${arrTag[2]}"
26+
VERSION="${VERSION:1}"
27+
echo "VERSION $VERSION"
28+
dotnet pack --output artifacts --configuration Release --no-restore --no-build -p:Version=$VERSION -p:TreatWarningsAsErrors=false
29+
- name: Push with dotnet
30+
run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
31+
- name: Archive artifacts
32+
uses: actions/upload-artifact@v1
33+
with:
34+
name: artifacts
35+
path: artifacts

Common.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<Authors>Dean Marcussen</Authors>
66
<PackageProjectUrl>https://github.com/ThisNetWorks/ThisNetWorks.OrchardCore.CKEditor</PackageProjectUrl>
77
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
8-
<VersionSuffix Condition="'$(VersionSuffix)'!='' AND '$(GITHUB_RUN_ID)' != ''">$(VersionSuffix)-$(GITHUB_RUN_ID)</VersionSuffix>
8+
<VersionSuffix>preview</VersionSuffix>
9+
<VersionSuffix Condition="'$(VersionSuffix)'!='' AND '$(BuildNumber)' != ''">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
910
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1011
<NoWarn>$(NoWarn);CS1591</NoWarn>
1112
<LangVersion>Latest</LangVersion>

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,14 @@ For further customization of builds, alternate editors, etc, please refer to the
3636

3737
## Versions
3838

39-
Currently built against
39+
Version tags and pre release suffixes are based of the version of Orchard Core referenced.
4040

41-
- Orchard Core Version `1.0.0-rc2-15621`
42-
- CKEditor Classic Build Version `23.0.0`
41+
For version 1.0 of Orchard Core use `1.0.0`, which will use the [Orchard Core NuGet Feed](https://www.nuget.org/packages/OrchardCore/).
42+
43+
Prerelease versions are suffixed with the CloudSmith build of Orchard Core referenced,
44+
and will required a configured CloudSmith NuGet feed. Refer [Configuring a preview package source](https://docs.orchardcore.net/en/latest/docs/getting-started/preview-package-source/)
45+
46+
e.g. `1.1.0-preview-16439` refers to the CloudSmith Orchard Core prerelease build `v1.1.0-preview-16439`
4347

4448
## License
4549

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<PackageTags>ckeditor;ckeditor5;orchardcore;</PackageTags>
55
<VersionPrefix>1.0.0</VersionPrefix>
6-
<VersionSuffix>beta</VersionSuffix>
6+
<VersionSuffix>preview</VersionSuffix>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
</PropertyGroup>
99

src/ThisNetWorks.OrchardCore.CKEditor/Manifest.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
Name = "ThisNetWorks OrchardCore CKEditor",
55
Author = "ThisNetWorks",
66
Website = "https://github.com/thisnetworks",
7-
Version = "0.0.1",
7+
Version = "1.0.0",
88
Description = "ThisNetWorks CKEditor editors and media plugins",
9-
Dependencies = new[] { "OrchardCore.ContentFields", "OrchardCore.Html" },
9+
Dependencies = new[]
10+
{
11+
"OrchardCore.ContentFields",
12+
"OrchardCore.Html"
13+
},
1014
Category = "Content Management"
1115
)]

0 commit comments

Comments
 (0)