Skip to content

Commit

Permalink
[GitActions][Pack] Rename to 'publish-nuget'
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Popescu committed Dec 18, 2023
1 parent cc757de commit e48b336
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 26 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pack & Deploy Workflow
name: publish-nuget

on:
workflow_run:
Expand Down Expand Up @@ -53,28 +53,11 @@ jobs:
dotnet pack \
--output ./artifacts \
--configuration $BUILD_CONFIG \
--version-suffix ${{ env.VERSION }}
/p:PackageVersion=${{ env.VERSION }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: ./artifacts

deploy:
runs-on: ubuntu-latest
needs: pack
name: Deploy Packages
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: artifacts
path: ./artifacts

- name: Publish packages
run: |
dotnet nuget push ./artifacts/**.nupkg \
--source https://api.nuget.org/v3/index.json \
--api-key ${{secrets.NUGET_TOKEN}} \
--skip-duplicate \
- name: Publish packages
run: |
dotnet nuget push ./artifacts/**.nupkg \
--source 'https://api.nuget.org/v3/index.json' \
--api-key ${{secrets.NUGET_TOKEN}} \
--skip-duplicate \
1 change: 0 additions & 1 deletion src/vies-dotnet-api/vies-dotnet-api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
<RequireLicenseAcceptance>false</RequireLicenseAcceptance>
<Summary>VIES (VAT Information Exchange System) NET API helps you to verify if EU VAT information exists (valid) or it doesn't exist (invalid).</Summary>
<Title>VIES NET API</Title>
<Version>3.0.0</Version>
</PropertyGroup>

<PropertyGroup Label="Analyzers">
Expand Down

0 comments on commit e48b336

Please sign in to comment.