File tree 8 files changed +35
-206
lines changed
8 files changed +35
-206
lines changed Load Diff This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change 48
48
max-parallel : 1
49
49
matrix :
50
50
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
52
52
permissions :
53
53
contents : write
54
54
with :
Original file line number Diff line number Diff line change 56
56
- generate-changelog
57
57
permissions :
58
58
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
60
60
with :
61
61
version : ${{ inputs.version }}
62
62
changelog : ${{ needs.generate-changelog.outputs.changelog }}
Original file line number Diff line number Diff line change 1
- name : Release Package
1
+ name : 🚀 Release Package
2
2
on :
3
3
workflow_call :
4
4
inputs :
16
16
required : true
17
17
jobs :
18
18
nuget :
19
- name : 🚀 push to NuGet
19
+ name : 🚀 Push to NuGet
20
20
runs-on : ubuntu-latest
21
21
env :
22
22
SEMVER : ${{ inputs.version }}
@@ -32,36 +32,11 @@ jobs:
32
32
- name : Push to NuGet
33
33
run : dotnet nuget push ${{ env.ARTIFACT_PATH }}/**/*.nupkg -k ${{ env.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
34
34
create-release :
35
- name : 🚀 create release
35
+ name : 🚀 Create release
36
36
needs :
37
37
- nuget
38
- runs-on : ubuntu-latest
39
38
permissions :
40
39
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 }}
You can’t perform that action at this time.
0 commit comments