Skip to content

Commit 12a3a9a

Browse files
authored
Updating release process
1 parent 7d90956 commit 12a3a9a

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/prepare_release.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Prepare Release
22

33
on:
4-
release:
5-
types: [unpublished]
4+
workflow_dispatch:
5+
inputs:
6+
milestone:
7+
description: 'The milestone to generate a release for'
8+
required: true
9+
type: string
610

711
env:
812
solution: MaterialDesignToolkit.Full.sln
@@ -20,7 +24,7 @@ jobs:
2024
id: get-contribs
2125
uses: Keboo/GitHubHelper@master
2226
with:
23-
milestone: '${{ github.ref }}'
27+
milestone: '${{ inputs.milestone }}'
2428
repository: 'MaterialDesignInXamlToolkit'
2529
repository-owner: 'MaterialDesignInXAML'
2630
token: ${{ github.token }}
@@ -60,7 +64,7 @@ jobs:
6064
name: DemoApp
6165
path: "MainDemo.Wpf/bin/${{ env.buildConfiguration }}"
6266

63-
update_release:
67+
create_release:
6468
needs: [collect_contributors, build_artifacts]
6569
runs-on: ubuntu-latest
6670
name: Update Release
@@ -71,14 +75,13 @@ jobs:
7175
with:
7276
name: NuGets
7377
path: nugets
74-
78+
7579
- name: Download Demo App Artifacts
7680
uses: actions/download-artifact@v3
7781
with:
7882
name: DemoApp
7983
path: demo-app
80-
81-
- name: Add Artifacts to Release
84+
85+
- name: Create Release
8286
run: |
83-
gh release upload "github.ref" nugets/*
84-
gh release upload "github.ref" demo-app/*
87+
gh release create v${{ inputs.milestone }} --generate-notes '/nugets#NuGets' '/demo-app#Demo App'

0 commit comments

Comments
 (0)