Skip to content

Commit

Permalink
build: fix pack for release
Browse files Browse the repository at this point in the history
  • Loading branch information
elementh committed May 22, 2023
1 parent e245d93 commit a0e3bfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/thankifi.common.filters.abstractions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ jobs:
if: github.event_name != 'release'
working-directory: ./src
run: dotnet pack --configuration Release --no-restore --include-symbols --include-source --output ${{ env.LOCAL_NUGET_DIRECTORY }} $PROJECT_NAME/$PROJECT_NAME.csproj
- name: Pack
- name: Pack for Release
if: github.event_name == 'release'
working-directory: ./src
run: |
VERSION="${GITHUB_REF_NAME//v}
arrTag=(${GITHUB_REF//\// })
VERSION="${arrTag[2]//V}"
dotnet pack --configuration Release --no-restore --include-symbols --include-source -p:PackageVersion=$VERSION --output ${{ env.LOCAL_NUGET_DIRECTORY }} $PROJECT_NAME/$PROJECT_NAME.csproj
- uses: actions/upload-artifact@v3
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/thankifi.common.filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ jobs:
if: github.event_name != 'release'
working-directory: ./src
run: dotnet pack --configuration Release --no-restore --include-symbols --include-source --output ${{ env.LOCAL_NUGET_DIRECTORY }} $PROJECT_NAME/$PROJECT_NAME.csproj
- name: Pack
- name: Pack for Release
if: github.event_name == 'release'
working-directory: ./src
run: |
VERSION="${GITHUB_REF_NAME//v}
arrTag=(${GITHUB_REF//\// })
VERSION="${arrTag[2]//V}"
dotnet pack --configuration Release --no-restore --include-symbols --include-source -p:PackageVersion=$VERSION --output ${{ env.LOCAL_NUGET_DIRECTORY }} $PROJECT_NAME/$PROJECT_NAME.csproj
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit a0e3bfa

Please sign in to comment.