Skip to content

Commit 0832c4a

Browse files
committed
Add MIT license and GitHub Actions release workflow
1 parent cfb4c1e commit 0832c4a

3 files changed

Lines changed: 82 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags: [ 'v*' ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
rid: [ win-x64, linux-x64, osx-x64, osx-arm64 ]
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: '9.0.x'
24+
25+
- name: Publish (${{ matrix.rid }})
26+
run: >
27+
dotnet publish IpWidget.csproj -c Release -r ${{ matrix.rid }}
28+
--self-contained
29+
-p:PublishSingleFile=true
30+
-p:EnableCompressionInSingleFile=true
31+
-o publish/${{ matrix.rid }}
32+
33+
- name: Archive
34+
run: |
35+
NAME="ipwidget-${{ github.ref_name }}-${{ matrix.rid }}"
36+
cd publish/${{ matrix.rid }}
37+
if [ "${{ matrix.rid }}" = "win-x64" ]; then
38+
zip -r "../../$NAME.zip" .
39+
else
40+
tar -czf "../../$NAME.tar.gz" .
41+
fi
42+
43+
- name: Attach to release
44+
uses: softprops/action-gh-release@v2
45+
with:
46+
files: |
47+
ipwidget-*.zip
48+
ipwidget-*.tar.gz

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 keyldev
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,16 @@ dotnet publish -c Release -r win-x64 --self-contained \
3434

3535
- [Avalonia UI](https://avaloniaui.net) 11.2 · .NET 9
3636
- Без внешних ассетов — иконка приложения/трея рисуется в рантайме.
37+
38+
## Релизы
39+
40+
Пуш тега `v*` собирает через GitHub Actions single-file бинарники под
41+
`win-x64`, `linux-x64`, `osx-x64`, `osx-arm64` и прикладывает их к релизу.
42+
43+
```bash
44+
git tag v0.1.0 && git push origin v0.1.0
45+
```
46+
47+
## Лицензия
48+
49+
[MIT](LICENSE) © keyldev

0 commit comments

Comments
 (0)