Skip to content

Commit

Permalink
Reverting to manual version setting
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutomi committed Feb 21, 2024
1 parent c13375b commit 05ab631
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,33 +48,24 @@ jobs:
run: dotnet test --no-build --verbosity normal -c Release -f ${{ env.DOTNET_FX_VERSION }}

build:
name: "Build and Push Artifacts"
needs: validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
with:
versionSpec: '5.x'

- name: Determine Version
uses: gittools/actions/gitversion/execute@v0
with:
updateAssemblyInfo: true

- name: Setup .NET 8.0 Framework
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Build
run: dotnet build -c Release
run: dotnet build -c Release --version-suffix $GITHUB_RUN_ID

- name: Pack NuGet
run: dotnet pack -c Release --no-build --include-symbols --include-source -o ./nuget
run: dotnet pack -c Release --no-build --include-symbols --include-source --version-suffix $GITHUB_RUN_ID -o ./nuget

- name: Push NutGet
run: dotnet nuget push ./nuget/*.nupkg -s "https://nuget.pkg.github.com/deveel/index.json" --skip-duplicate --api-key ${{secrets.GITHUB_TOKEN}}
Expand Down

0 comments on commit 05ab631

Please sign in to comment.