-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1 KB
/
NewRelease.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Milestone Closure Trigger
on:
milestone:
types: [closed]
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Get Project Version
id: get_version
uses: mod-posh/GetProjectVersion@v0.0.2.2
with:
Filename: 'SpnLibrary\SpnLibrary.psd1'
verbose: "verbose"
- name: Create Release Notes
uses: mod-posh/Issue2ReleaseNotes@v0.0.3.3
with:
milestone_number: ${{ github.event.milestone.number }}
verbose: 'verbose'
github_token: ${{ secrets.PAT }}
- name: Pull Latest Changes
run: git pull origin ${{ github.ref_name }}
shell: bash
- name: Create Release
uses: mod-posh/NewTaggedRelease@v0.0.3.1
with:
name: 'Release v${{ env.VERSION }}'
filename: 'RELEASE.md'
version: ${{ env.VERSION }}
verbose: 'verbose'
github_token: ${{ secrets.PAT }}