-
Notifications
You must be signed in to change notification settings - Fork 3
72 lines (60 loc) · 1.75 KB
/
Copy pathrelease.yml
File metadata and controls
72 lines (60 loc) · 1.75 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release version (e.g., v1.0.0)'
required: true
prerelease:
description: 'Is this a pre-release?'
type: boolean
default: false
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.version }}
release_name: Release ${{ github.event.inputs.version }}
draft: true
prerelease: ${{ github.event.inputs.prerelease }}
body: |
## What's Changed
### Features
-
### Bug Fixes
-
### Downloads
Please download the appropriate installer for your platform below.
---
**Full Changelog**: https://github.com/${{ github.repository }}/compare/previous-tag...${{ github.event.inputs.version }}
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload-assets:
needs: create-release
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
include:
- os: windows
ext: .exe
- os: macos
ext: .dmg
- os: linux
ext: .AppImage
steps:
- name: Placeholder for asset upload
run: |
echo "Asset upload for ${{ matrix.os }} would happen here"
echo "You'll need to manually upload files or integrate with your private repo's CI"