Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b69cc9ea75 | |||
| 68ce5b04d9 | |||
| 6c33537060 |
@@ -30,6 +30,4 @@ jobs:
|
|||||||
- name: Pack
|
- name: Pack
|
||||||
run: dotnet pack --configuration Release /p:Version=${{ env.PACKAGE_VERSION }} --no-build --output .
|
run: dotnet pack --configuration Release /p:Version=${{ env.PACKAGE_VERSION }} --no-build --output .
|
||||||
- name: Push
|
- name: Push
|
||||||
run: dotnet nuget push ${{ env.PACKAGE_NAME }} --source ${{ env.PACKAGE_SOURCE }} --api-key ${GITHUB_TOKEN}
|
run: dotnet nuget push ${{ env.PACKAGE_NAME }} --source ${{ env.PACKAGE_SOURCE }} --api-key ${{ env.PACKAGE_TOKEN }}
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ env.PACKAGE_TOKEN }}
|
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v[0-9]+.[0-9]+.[0-9]+-preview[0-9][0-9][0-9]"
|
||||||
|
|
||||||
|
env:
|
||||||
|
PACKAGE_VERSION: ${GITHUB_REF/refs\/tags\/v/}
|
||||||
|
PACKAGE_OWNER: ${{ github.repository_owner }}
|
||||||
|
PACKAGE_NAME: MongoDbGenericRepository.${{ env.PACKAGE_VERSION }}.nupkg
|
||||||
|
PACKAGE_SOURCE: https://git.home.cuco.li/api/packages/${{ env.PACKAGE_OWNER }}/nuget/index.json
|
||||||
|
PACKAGE_TOKEN: ${{ secrets.PACKAGE_PUSH_TOKEN }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 15
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: '8.x.x'
|
||||||
|
- name: Pack
|
||||||
|
run: dotnet pack --configuration Release /p:Version=${{ env.PACKAGE_VERSION }} --output .
|
||||||
|
- name: Push
|
||||||
|
run: dotnet nuget push ${{ env.PACKAGE_NAME }} --source ${{ env.PACKAGE_SOURCE }} --api-key ${{ env.PACKAGE_TOKEN }}
|
||||||
Reference in New Issue
Block a user