File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1010 - name : Checkout repository
1111 uses : actions/checkout@v3
1212 - name : Set VERSION variable from tag
13- run : echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
13+ run : echo "VERSION=${GITHUB_REF/refs\/tags\/umb- v/}" >> $GITHUB_ENV
1414 - name : Output version name
1515 run : echo "${VERSION}"
1616 - name : Cancel job if version is empty
Original file line number Diff line number Diff line change 1+ name : Release Preview Umbraco Package
2+ on :
3+ push :
4+ tags :
5+ - " umb-v[0-9]+.[0-9]+.[0-9]+-[a-z]*[0-9][0-9][0-9]"
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout repository
11+ uses : actions/checkout@v3
12+ - name : Set VERSION variable from tag
13+ run : echo "VERSION=${GITHUB_REF/refs\/tags\/umb-v/}" >> $GITHUB_ENV
14+ - name : Output version name
15+ run : echo "${VERSION}"
16+ - name : Cancel job if version is empty
17+ if : ${{ env.VERSION == '' }}
18+ run : exit 1
19+ - name : Build Umbraco Package
20+ run : dotnet pack ./src/Umbraco.Community.ImageSharpRemoteImages/Umbraco.Community.ImageSharpRemoteImages.csproj /p:NuGetVersion=${VERSION} /p:Version=${VERSION} --output . --configuration Release
21+ - name : Pack
22+ run : dotnet pack ./src/Umbraco.Community.ImageSharpRemoteImages/Umbraco.Community.ImageSharpRemoteImages.csproj /p:NuGetVersion=${VERSION} /p:Version=${VERSION} --output . --configuration Release --no-build
23+ - name : Push to NuGet
24+ run : dotnet nuget push **\Umbraco.Community.ImageSharpRemoteImages.${VERSION}.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments