Skip to content

Commit

Permalink
build: try new version deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
elementh committed May 22, 2023
1 parent 7b47f43 commit e245d93
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/thankifi.common.filters.abstractions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,15 @@ jobs:
working-directory: ./src
run: dotnet restore
- name: Pack
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
if: github.event_name == 'release'
working-directory: ./src
run: |
VERSION="${GITHUB_REF_NAME//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:
name: nupkg
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/thankifi.common.filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,15 @@ jobs:
working-directory: ./src
run: dotnet restore
- name: Pack
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
if: github.event_name == 'release'
working-directory: ./src
run: |
VERSION="${GITHUB_REF_NAME//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:
name: nupkg
Expand All @@ -76,6 +83,7 @@ jobs:
# VERSION="${arrTag[2]}"
# echo Version: $VERSION
# VERSION="${VERSION//v}"

# echo Clean Version: $VERSION
# dotnet pack -v normal -c Release --include-symbols --include-source -p:PackageVersion=$VERSION -o nupkg src/$PROJECT_NAME/$PROJECT_NAME.*proj
- name: Push to GitHub Feed
Expand Down

0 comments on commit e245d93

Please sign in to comment.