Skip to content

Commit 8daad84

Browse files
committed
don't use GH action for publish so that we can control version
1 parent e83632c commit 8daad84

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/publish_beta.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@ jobs:
1313
- uses: gittools/actions/gitversion/[email protected]
1414
with:
1515
versionSpec: '6.0.x'
16-
- id: determine_version
17-
uses: gittools/actions/gitversion/[email protected]
18-
- name: Publish beta CSharpier dotnet tool on push
19-
uses: alirezanet/[email protected]
20-
with:
21-
VERSION_STATIC: ${{ env.branchName }}-beta${{ env.commitsSinceVersionSource }}
22-
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
23-
PROJECT_FILE_PATH: Src/CSharpier.Cli/CSharpier.Cli.csproj
24-
TAG_FORMAT: "*"
16+
- uses: gittools/actions/gitversion/[email protected]
17+
- run: |
18+
echo "VERSION=${{env.branchName}}-beta${{env.commitsSinceVersionSource}}
19+
dotnet pack Src/CSharpier.Cli/CSharpier.Cli.csproj -c Release /p:Version=${{env.VERSION}}
20+
dotnet nuget push dist/CSharpier.${{env.VERSION}}.nupkg

0 commit comments

Comments
 (0)