This repository was archived by the owner on Apr 8, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
123 lines (101 loc) · 3.45 KB
/
release.yml
File metadata and controls
123 lines (101 loc) · 3.45 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
name: Release Litemark (New Version)
on:
workflow_dispatch:
inputs:
version:
description: 'Release version (e.g., v1.0.0)'
required: true
prerelease:
description: 'Mark as prerelease?'
type: boolean
default: false
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Install NeutralinoJS
run: pnpm add -g @neutralinojs/neu@latest
- name: General Client Library
run: neu update
- name: Compile app
run: neu build --release
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: neutralino-binaries
path: dist/litemark/
finalize:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
path: artifacts/
- name: Generate commit list
id: commits
run: |
git fetch --tags
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
if [ -z "$LAST_TAG" ]; then
COMMITS=$(git log --pretty=format:"- %s (%h)")
else
COMMITS=$(git log ${LAST_TAG}..HEAD --pretty=format:"- %s (%h)")
fi
{
echo "COMMITS<<END"
echo "$COMMITS"
echo "END"
} >> $GITHUB_OUTPUT
- name: Create Git Tag (if not exists) # this is p smart actually
run: |
git fetch --tags
if git rev-parse "${{ inputs.version }}" >/dev/null 2>&1; then
echo "Tag already exists"
else
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git tag -a ${{ inputs.version }} -m "Release ${{ inputs.version }}"
git push origin ${{ inputs.version }}
fi
- name: Create Release
uses: softprops/action-gh-release@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ inputs.version }}
prerelease: ${{ inputs.prerelease }}
title: 'LiteMark: ${{ inputs.version }}'
body: |
# LiteMark version ${{ inputs.version }}!!!
Check out the summarized updates in [CHANGELOG.md](https://github.com/PinpointTools/LiteMark/blob/main/CHANGELOG.md)
---
## Commits
${{ steps.commits.outputs.COMMITS }}
---
# ‼️ • READ THIS!! • ‼️
## Depending on your operating system, you must download one of these:
| Filename | CPU Arch |
| - | - |
| LiteMark-linux_x64 | x86_64 |
| LiteMark-linux_armhf | armf |
| LiteMark-linux_arm64 | arm64 |
| LiteMark-mac_x64 | x86_64 |
| LiteMark-mac_universal | x86_64 and arm64 |
| LiteMark-mac_arm64 | arm64 |
| LiteMark-win_x64 | x86_64 |
## Another important thing:
You must install **resources.neu**. This what launches the app. Without it, it would be useless.
files: artifacts/neutralino-binaries/**