Skip to content

Commit

Permalink
(#64) Migrate to a specific -test version suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed May 26, 2024
1 parent 231fb8d commit 9df9a7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ jobs:
dotnet-version: 7.0.x
- name: Pack NuGet
shell: pwsh
run: dotnet pack tdlib.native.ubuntu-20.04-x64.proj -p:Version=${{ env.PACKAGE_VERSION_BASE }}-preview --output build
run: dotnet pack tdlib.native.ubuntu-20.04-x64.proj -p:Version=${{ env.PACKAGE_VERSION_BASE }}-test --output build
- name: NuGet cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
dotnet-version: 7.0.x
- name: Pack NuGet
shell: pwsh
run: dotnet pack tdlib.native.linux-x64.proj -p:Version=${{ env.PACKAGE_VERSION_BASE }}-preview --output build
run: dotnet pack tdlib.native.linux-x64.proj -p:Version=${{ env.PACKAGE_VERSION_BASE }}-test --output build
- name: NuGet cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -269,7 +269,7 @@ jobs:
dotnet-version: 7.0.x
- name: Pack NuGet
shell: pwsh
run: dotnet pack tdlib.native.osx-arm64.proj -p:Version=${{ env.PACKAGE_VERSION_BASE }}-preview --output build
run: dotnet pack tdlib.native.osx-arm64.proj -p:Version=${{ env.PACKAGE_VERSION_BASE }}-test --output build
- name: NuGet cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -303,7 +303,7 @@ jobs:
dotnet-version: 7.0.x
- name: Pack NuGet
shell: pwsh
run: dotnet pack tdlib.native.osx-x64.proj -p:Version=${{ env.PACKAGE_VERSION_BASE }}-preview --output build
run: dotnet pack tdlib.native.osx-x64.proj -p:Version=${{ env.PACKAGE_VERSION_BASE }}-test --output build
- name: NuGet cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -348,7 +348,7 @@ jobs:
dotnet-version: 7.0.x
- name: Pack NuGet
shell: pwsh
run: dotnet pack tdlib.native.win-x64.proj -p:Version=${{ env.PACKAGE_VERSION_BASE }}-preview --output build
run: dotnet pack tdlib.native.win-x64.proj -p:Version=${{ env.PACKAGE_VERSION_BASE }}-test --output build
- name: NuGet cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -419,7 +419,7 @@ jobs:
- id: version
name: Read version from ref
shell: pwsh
run: "\"version=$(if ($env:GITHUB_REF.StartsWith('refs/tags/v')) { $env:GITHUB_REF -replace '^refs/tags/v', '' } else { \"$env:PACKAGE_VERSION_BASE-preview\" })\" >> $env:GITHUB_OUTPUT"
run: "\"version=$(if ($env:GITHUB_REF.StartsWith('refs/tags/v')) { $env:GITHUB_REF -replace '^refs/tags/v', '' } else { \"$env:PACKAGE_VERSION_BASE-test\" })\" >> $env:GITHUB_OUTPUT"
- name: Prepare the release notes
uses: ForNeVeR/ChangelogAutomation.action@v1
with:
Expand Down
5 changes: 2 additions & 3 deletions github-actions.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,8 @@ type Workflows =
setUpDotNetSdk
pwsh "Pack NuGet" (
$"dotnet pack {Names.package platform arch}.proj" +
" -p:Version=${{ env.PACKAGE_VERSION_BASE }}-preview --output build"
" -p:Version=${{ env.PACKAGE_VERSION_BASE }}-test --output build"
)
// TODO[#64]: Add ${{ github.run_id }} as a patch version
step(name = "NuGet cache", uses = "actions/cache@v4", options = Map.ofList [
"path", "${{ env.NUGET_PACKAGES }}"
"key", "${{ runner.os }}.nuget.${{ hashFiles('tdsharp/**/*.csproj') }}"
Expand Down Expand Up @@ -312,7 +311,7 @@ let workflows = [
name = "Read version from ref",
id = "version",
shell = "pwsh",
run = "\"version=$(if ($env:GITHUB_REF.StartsWith('refs/tags/v')) { $env:GITHUB_REF -replace '^refs/tags/v', '' } else { \"$env:PACKAGE_VERSION_BASE-preview\" })\" >> $env:GITHUB_OUTPUT"
run = "\"version=$(if ($env:GITHUB_REF.StartsWith('refs/tags/v')) { $env:GITHUB_REF -replace '^refs/tags/v', '' } else { \"$env:PACKAGE_VERSION_BASE-test\" })\" >> $env:GITHUB_OUTPUT"
)

step(
Expand Down

0 comments on commit 9df9a7e

Please sign in to comment.