Skip to content

Commit

Permalink
Enable nuget push in obfuscator.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
albertospelta committed Feb 13, 2024
1 parent ba2d4d2 commit eae5c04
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release-obfuscator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
run: dotnet pack -c Release 'src/${{ env.PROJECT }}/${{ env.PROJECT }}.csproj'
- name: nuget sign
run: echo "::warning::(TODO) code signing."
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT }}_nuget
path: ${{ env.ARTIFACT_PATH }}
if-no-files-found: error
env:
ARTIFACT_PATH: src/artifacts/package/release/${{ env.PROJECT }}.${{ steps.nbgv.outputs.NuGetPackageVersion }}.nupkg
# - name: upload artifact
# uses: actions/upload-artifact@v4
# with:
# name: ${{ env.PROJECT }}_nuget
# path: ${{ env.NUPKG_PATH }}
# if-no-files-found: error
# env:
# NUPKG_PATH: src/artifacts/package/release/${{ env.PROJECT }}.${{ steps.nbgv.outputs.NuGetPackageVersion }}.nupkg
- name: create git tag
run: |
git config user.name github-actions[bot]
Expand All @@ -43,7 +43,9 @@ jobs:
env:
RELEASE_TAG: ${{ env.PROJECT }}_${{ steps.nbgv.outputs.NuGetPackageVersion }}
- name: nuget push
run: echo "::warning::(TOFIX) enable nuget push."
run: dotnet nuget push ${{ env.NUPKG_PATH }} -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
env:
NUPKG_PATH: src/artifacts/package/release/${{ env.PROJECT }}.${{ steps.nbgv.outputs.NuGetPackageVersion }}.nupkg
- name: create release
run: |
PRERELEASE_FLAG=$([[ "${{ steps.nbgv.outputs.PrereleaseVersion }}" != "" ]] && echo "--prerelease" || echo "")
Expand Down

0 comments on commit eae5c04

Please sign in to comment.