Skip to content

Commit 0af1f07

Browse files
committed
Add alpha tag to build
1 parent 1691ffa commit 0af1f07

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/publish-alpha.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,18 @@ jobs:
3434

3535
- name: Build (Release)
3636
working-directory: src
37-
run: dotnet build --configuration Release --no-restore
37+
run: |
38+
VERSION_SUFFIX="alpha-${{ github.run_number }}"
39+
dotnet build --configuration Release --no-restore \
40+
-p:VersionSuffix="$VERSION_SUFFIX"
41+
-p:ContinuousIntegrationBuild=true
3842
3943
# For <Version>1.2.3</Version>, adds the suffix: <VersionSuffix>alpha-<run_number></VersionSuffix>
4044
- name: Pack with alpha suffix
4145
working-directory: src
4246
run: |
4347
VERSION_SUFFIX="alpha-${{ github.run_number }}"
44-
dotnet pack --configuration Release --no-build \
45-
-p:VersionSuffix="$VERSION_SUFFIX" \
46-
-p:ContinuousIntegrationBuild=true \
47-
-o artifacts
48+
dotnet pack --configuration Release --no-build -o artifacts
4849
4950
- name: Push nupkg
5051
working-directory: src

src/Directory.Build.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1818
<PackageIcon>logo.png</PackageIcon>
1919
<PackageReadmeFile>README.md</PackageReadmeFile>
20-
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
2120
<Deterministic>true</Deterministic>
2221
<GenerateDocumentationFile>false</GenerateDocumentationFile> <!-- TODO: Generate proper
2322
documentation -->

0 commit comments

Comments
 (0)