Skip to content

Commit

Permalink
set static assemblyVersion;
Browse files Browse the repository at this point in the history
  • Loading branch information
lif0 committed Jan 17, 2024
1 parent ce89a72 commit e6d5cf3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/github-actions-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
test:
name: 'Run Test'
name: 'build-check'
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -29,4 +29,4 @@ jobs:
run: dotnet restore ${{ env.PROJECT_PATH }}

- name: Build project
run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release -p:AssemblyVersion=${{ steps.get_version.outputs.version-without-v }}
run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release
5 changes: 3 additions & 2 deletions .github/workflows/github-actions-push-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ env:
PROJECT_PATH: 'src'
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}/output
NUGET_SOURCE_URL: 'https://api.nuget.org/v3/index.json'
ASSEMBLY_VERSION: 2.0.0

jobs:
deploy:
name: 'Publish nuget'
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '5.x.x' ]
dotnet-version: [ '6.x.x' ]

steps:
- name: Checkout
Expand All @@ -38,7 +39,7 @@ jobs:
uses: battila7/get-version-action@v2

- name: Build project
run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release -p:AssemblyVersion=${{ steps.version.outputs.version-without-v }}
run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release -p:AssemblyVersion=${{ vars.ASSEMBLY_VERSION }}

- name: Pack project
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-actions-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "unit-tests"
name: "tests"

on:
push:
Expand Down
1 change: 1 addition & 0 deletions src/FabulousScheduler/FabulousScheduler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<IsPackable>true</IsPackable>
<PackageIcon>icon.png</PackageIcon>
<Version>1.0.0</Version>
<PackageLicenseUrl>https://github.com/lif0/FabulousScheduler/blob/main/LICENSE</PackageLicenseUrl>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit e6d5cf3

Please sign in to comment.