-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.53 KB
/
merge-releaser.yml
File metadata and controls
46 lines (45 loc) · 1.53 KB
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
40
41
42
43
44
45
46
name: Merge Releaser
# Run when a new release is... released
on:
pull_request:
types: [closed]
branches:
- main
jobs:
build:
if: github.event.pull_request.merged == true
name: Create release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: get version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: 'manifest.json'
prop_path: 'version_number'
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
with:
changelog_file: README.md
- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{steps.version.outputs.prop}}
release_name: ${{steps.version.outputs.prop}}
draft: false
prerelease: false
body: ${{ steps.extract-release-notes.outputs.release_notes }}
- name: Publish
- uses: GreenTF/upload-thunderstore-package@v3.1
with:
namespace: MWG # the thunderstore 'team' to publish under
description: For use on the Morningwood Gaming Valhalla Modded server. Come join us in https://discord.gg/mw-gc
token: ${{ secrets.Thunderstore_Token }}
name: MWG-MWG_Valhalla # the name of the package
version: ${{steps.version.outputs.prop}} # Use the tag as the package version
community: valheim