Compare commits
1 Commits
aa1c52fe9a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| ee189605b0 |
@@ -1,6 +1,5 @@
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master, develop ]
|
|
||||||
tags:
|
tags:
|
||||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||||
|
|
||||||
@@ -9,7 +8,7 @@ env:
|
|||||||
PACKAGE_OWNER: ${{ github.repository_owner }}
|
PACKAGE_OWNER: ${{ github.repository_owner }}
|
||||||
PACKAGE_NAME: AspNetCore.Identity.MongoDbCore.${{ env.PACKAGE_VERSION }}.nupkg
|
PACKAGE_NAME: AspNetCore.Identity.MongoDbCore.${{ env.PACKAGE_VERSION }}.nupkg
|
||||||
PACKAGE_SOURCE: https://git.home.cuco.li/api/packages/${{ env.PACKAGE_OWNER }}/nuget/index.json
|
PACKAGE_SOURCE: https://git.home.cuco.li/api/packages/${{ env.PACKAGE_OWNER }}/nuget/index.json
|
||||||
PACKAGE_TOKEN: ${{ github.token }}
|
PACKAGE_TOKEN: ${{ secrets.PACKAGE_PUSH_TOKEN }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -23,9 +22,7 @@ jobs:
|
|||||||
- name: Verify commit exists in origin/master
|
- name: Verify commit exists in origin/master
|
||||||
run: |
|
run: |
|
||||||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
|
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
|
||||||
git branch --remote --contains | grep origin/master
|
git branch --remote --contains | grep origin/master
|
||||||
#- name: Set VERSION variable from tag
|
|
||||||
# run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet build --configuration Release /p:Version=${{ env.PACKAGE_VERSION }}
|
run: dotnet build --configuration Release /p:Version=${{ env.PACKAGE_VERSION }}
|
||||||
- name: Test
|
- name: Test
|
||||||
@@ -33,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 }}
|
|
||||||
Reference in New Issue
Block a user