Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push to CI feed #1585

Merged
merged 2 commits into from
Nov 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ jobs:
- name: Install .NET Core from global.json
uses: actions/setup-dotnet@v3
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
uses: gittools/actions/gitversion/setup@v0.9.15
with:
versionSpec: '6.x'
includePrerelease: true
# v5.10.0 of GitVersion has a fix for incorrect versions when building tags. See https://github.com/GitTools/GitVersion/issues/2838
# It appears that the fix then had a regression in a later version, so locking in 5.10.0. See https://github.com/GitTools/GitVersion/issues/3351#issuecomment-1403657689
versionSpec: '5.10.0'
- name: Determine Version
uses: gittools/actions/gitversion/execute@v0
with:
Expand Down Expand Up @@ -151,7 +152,29 @@ jobs:
name: Signed
path: |
${{ github.workspace }}\unsigned\*.snupkg
${{ github.workspace }}\unsigned\raw\*.nupkg
${{ github.workspace }}\unsigned\raw\*.nupkg
CI:
name: "Push to CI feed"
needs: [sign]
runs-on: ubuntu-latest
steps:
- name: Install .NET Core
uses: actions/setup-dotnet@v3
- name: Download Packages
uses: actions/download-artifact@v3
with:
name: Signed
path: '${{ github.workspace }}/packages'
- name: Push to CI feed
env:
SLEET_FEED_TYPE: azure
SLEET_FEED_CONTAINER: feed
SLEET_FEED_CONNECTIONSTRING: ${{secrets.SLEET_CONNECTIONSTRING}}
run: |
cd $GITHUB_WORKSPACE/packages
dotnet tool install -g sleet
sleet push . --skip-existing

releaseInfo:
name: Release Info
runs-on: windows-latest
Expand Down
Loading