Skip to content

Commit 6625d02

Browse files
committed
feature: dotnet setup v4
1 parent f145e05 commit 6625d02

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
name: Create Release and Push to Marketplace
1+
name: 🚀 Deploy
22
on:
33
workflow_dispatch:
44
pull_request:
55
types: [ closed ]
6+
push:
7+
branches:
8+
- main
69
jobs:
710
build:
811
runs-on: ubuntu-latest
@@ -20,22 +23,31 @@ jobs:
2023
- name: Determine Version
2124
id: gitversion
2225
uses: gittools/actions/gitversion/execute@v0
23-
- name: Tag ${{ env.GitVersion_SemVer }}
26+
- name: Tag ${{ steps.gitversion.outputs.semVer }}
2427
run: |
2528
git config user.name "$env:GITHUB_ACTOR"
2629
git config user.email "$env:GITHUB_ACTOR_ID+$env:[email protected]"
2730
git tag -a "$GitVersion_SemVer" -m "Release $GitVersion_SemVer"
28-
- name: Create Release ${{ env.GitVersion_SemVer }}
29-
uses: ncipollo/release-action@v1
30-
with:
31-
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}
32-
generateReleaseNotes: true
33-
tag: ${{ env.GitVersion_SemVer }}
34-
allowUpdates: true
35-
makeLatest: true
36-
- name: Push ${{ env.GitVersion_SemVer }}
31+
- name: Push ${{ steps.gitversion.outputs.semVer }}
3732
uses: ad-m/github-push-action@master
3833
with:
3934
github_token: ${{ secrets.GITHUB_TOKEN }}
4035
force: true
4136
tags: true
37+
- uses: jcdcdev/jcdcdev.Github.GenerateChangelog@main
38+
id: changelog
39+
with:
40+
version: ${{ steps.gitversion.outputs.semVer }}
41+
github-token: ${{ secrets.GITHUB_TOKEN }}
42+
include-version-as-heading: true
43+
include-compare-link: true
44+
include-links: true
45+
- name: Create Release ${{ steps.gitversion.outputs.semVer }}
46+
uses: ncipollo/release-action@v1
47+
with:
48+
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}
49+
generateReleaseNotes: false
50+
body: ${{ steps.changelog.outputs.changelog }}
51+
tag: ${{ steps.gitversion.outputs.semVer }}
52+
allowUpdates: true
53+
makeLatest: true

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ runs:
112112
npm run ${{ env.NPM_RUN_COMMAND }}
113113
popd
114114
- name: Setup .NET
115-
uses: actions/setup-dotnet@v2
115+
uses: actions/setup-dotnet@v4
116116
with:
117117
dotnet-version: ${{ env.DOTNET_VERSION }}
118118
- name: Build project

0 commit comments

Comments
 (0)