Skip to content

Commit 154dd8a

Browse files
committed
+changelog-ignore:
1 parent d3966f0 commit 154dd8a

8 files changed

+35
-206
lines changed

.github/workflows/build-release-template.yml

-173
This file was deleted.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Get Project Metadata
2+
on:
3+
workflow_call:
4+
outputs:
5+
project-name:
6+
value: ${{ jobs.metadata.outputs.project-name }}
7+
project-path:
8+
value: ${{ jobs.metadata.outputs.project-path }}
9+
jobs:
10+
metadata:
11+
runs-on: ubuntu-latest
12+
outputs:
13+
project-name: ${{ steps.set-metadata.outputs.project-name }}
14+
project-path: ${{ steps.set-metadata.outputs.project-path }}
15+
steps:
16+
- name: Set project name
17+
id: set-metadata
18+
shell: pwsh
19+
run: |
20+
repo=${{ github.repository }}
21+
projectName=${repo#*/}
22+
projectPath="./src/$projectName/$projectName.csproj"
23+
24+
echo "project-name=$projectName" >> $env:GITHUB_OUTPUT
25+
echo "project-path=$projectPath" >> $env:GITHUB_OUTPUT
26+
27+
echo "Metadata Set`n`nproject-name=$projectName`nproject-path=$projectPath"

.github/workflows/update-all-releases.yml .github/workflows/lib/update-all-releases.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
max-parallel: 1
4949
matrix:
5050
version: ${{fromJson(needs.get-tags.outputs.versions)}}
51-
uses: jcdcdev/jcdcdev.Github.UmbracoSimpleDeploy/.github/workflows/update-release.yml@main
51+
uses: jcdcdev/jcdcdev.Github.UmbracoSimpleDeploy/.github/workflows/lib/update-release.yml@main
5252
permissions:
5353
contents: write
5454
with:

.github/workflows/update-release.yml .github/workflows/lib/update-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- generate-changelog
5757
permissions:
5858
contents: write
59-
uses: jcdcdev/jcdcdev.Github.UmbracoSimpleDeploy/.github/workflows/create-release.yml@main
59+
uses: jcdcdev/jcdcdev.Github.UmbracoSimpleDeploy/.github/workflows/create-github-release.yml@main
6060
with:
6161
version: ${{ inputs.version }}
6262
changelog: ${{ needs.generate-changelog.outputs.changelog }}
+6-31
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release Package
1+
name: 🚀 Release Package
22
on:
33
workflow_call:
44
inputs:
@@ -16,7 +16,7 @@ on:
1616
required: true
1717
jobs:
1818
nuget:
19-
name: 🚀 push to NuGet
19+
name: 🚀 Push to NuGet
2020
runs-on: ubuntu-latest
2121
env:
2222
SEMVER: ${{ inputs.version }}
@@ -32,36 +32,11 @@ jobs:
3232
- name: Push to NuGet
3333
run: dotnet nuget push ${{ env.ARTIFACT_PATH }}/**/*.nupkg -k ${{ env.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
3434
create-release:
35-
name: 🚀 create release
35+
name: 🚀 Create release
3636
needs:
3737
- nuget
38-
runs-on: ubuntu-latest
3938
permissions:
4039
contents: write
41-
env:
42-
SEMVER: ${{ inputs.version }}
43-
steps:
44-
- name: Checkout repository
45-
uses: actions/checkout@v4
46-
with:
47-
fetch-depth: 0
48-
- run: echo "PREVIOUS_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo '')" >> $GITHUB_ENV
49-
- name: Generate changelog
50-
id: changelog
51-
uses: jaywcjlove/changelog-generator@main
52-
with:
53-
token: ${{ secrets.GITHUB_TOKEN }}
54-
filter-author: (jcdcdev|dependabot|renovate\\[bot\\]|dependabot\\[bot\\]|Renovate Bot)
55-
filter: '(\+semver:\s?(breaking|major|feature|minor|fix|patch)|\+changelog-ignore:.*|Merge.*)'
56-
custom-emoji: 'feature🌟,nuget📦'
57-
- name: Create Release
58-
uses: ncipollo/release-action@v1
59-
with:
60-
allowUpdates: true
61-
token: ${{ secrets.GITHUB_TOKEN }}
62-
name: ${{ env.SEMVER }}
63-
tag: ${{ env.SEMVER }}
64-
body: |
65-
Compare (${{ env.PREVIOUS_TAG }}...${{env.SEMVER}})[https://github.com/${{ github.repository }}/compare/${{ env.PREVIOUS_TAG }}...${{env.SEMVER}}]
66-
67-
${{ steps.changelog.outputs.changelog }}
40+
uses: jcdcdev/jcdcdev.Github.UmbracoSimpleDeploy/.github/workflows/lib/update-release.yml@main
41+
with:
42+
version: ${{ inputs.version }}

0 commit comments

Comments
 (0)