Skip to content

Commit

Permalink
Skip publishing package on CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanPetersson committed Nov 14, 2023
1 parent 4a9d57c commit 241442b
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,31 @@ jobs:
path: artifacts/*.nupkg
retention-days: 2

publish:
name: Publish
needs: build_test_pack
runs-on: windows-latest
env:
nugetSource: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
DOTNET_NOLOGO: 1
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: packages
- name: Publish to Github Packages
run: dotnet nuget push *.nupkg --source $env:nugetSource --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }}
# publish:
# name: Publish
# needs: build_test_pack
# runs-on: windows-latest
# env:
# nugetSource: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
# DOTNET_NOLOGO: 1
# steps:
# - name: Download artifacts
# uses: actions/download-artifact@v2
# with:
# name: packages
# - name: Publish to Github Packages
# run: dotnet nuget push *.nupkg --source $env:nugetSource --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }}

cleanup:
name: Cleanup
needs: build_test_pack
runs-on: ubuntu-latest
steps:
- name: Cleanup old Packages
uses: actions/delete-package-versions@v3
with:
package-name: 'EPiServer.Templates'
min-versions-to-keep: 10
# 1-in-1-out
num-old-versions-to-delete: 1
delete-only-pre-release-versions: "true"
# cleanup:
# name: Cleanup
# needs: build_test_pack
# runs-on: ubuntu-latest
# steps:
# - name: Cleanup old Packages
# uses: actions/delete-package-versions@v3
# with:
# package-name: 'EPiServer.Templates'
# min-versions-to-keep: 10
# # 1-in-1-out
# num-old-versions-to-delete: 1
# delete-only-pre-release-versions: "true"

0 comments on commit 241442b

Please sign in to comment.