-
Notifications
You must be signed in to change notification settings - Fork 78
42 lines (36 loc) · 1.04 KB
/
build_release.yaml
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
on:
workflow_dispatch:
inputs:
version:
description: "Release version (e.g., 1.1.0)"
required: true
type: string
name: Build Release
permissions:
contents: write
jobs:
build-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get current date
id: date
run: |
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Build Assets
run: git ls-files | zip LME-${{ inputs.version }}.zip -@
- name: Create Draft Release
uses: softprops/action-gh-release@v0.1.15
with:
name: LME v${{ inputs.version }}
tag_name: v${{ inputs.version }}
body: |
## [${{ inputs.version }}] - Timberrrrr! - ${{ env.date }}
append_body: true
files: LME-${{ inputs.version }}.zip
draft: true
prerelease: false
discussion_category_name: "Announcements"
generate_release_notes: true
fail_on_unmatched_files: true