1
1
name : Create Release with Binary
2
2
3
3
on :
4
- tags :
5
- - ' * '
4
+ push :
5
+ branches : [ "master" ]
6
6
7
7
jobs :
8
8
release :
@@ -11,26 +11,19 @@ jobs:
11
11
- name : Checkout repository
12
12
uses : actions/checkout@v4
13
13
14
- - name : Get version from config.make
15
- id : get_version
16
- run : |
17
- VERSION=$(sed -ne 's/^VERSION := //p' config.make | tr -d '\n')
18
- echo "::set-output name=version::$VERSION"
19
-
20
14
- name : Download Binary using wget
21
15
run : |
22
16
wget https://github.com/michael105/static-bin/raw/refs/heads/main/xorg/slterm
23
17
chmod a+x slterm
24
18
mv slterm slterm_linux_amd64
25
-
26
19
- name : Create GitHub Release
27
20
id : create_release
28
21
uses : actions/create-release@v1
29
22
env :
30
23
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
24
with :
32
- tag_name : ${{ steps.get_version.outputs.version }}
33
- release_name : Release ${{ steps.get_version.outputs.version }}
25
+ tag_name : ${{ github.ref }}
26
+ release_name : Release ${{ github.ref }}
34
27
body : |
35
28
statically linked binary for linux/64bit attached
36
29
draft : false
45
38
asset_path : ./slterm_linux_amd64
46
39
asset_name : slterm_linux_amd64
47
40
asset_content_type : application/octet-stream
48
-
49
- - name : build package
50
- run : |
51
- VERSION=${{ steps.get_version.outputs.version }}
52
- sed -i "s/VERSION/$VERSION/;/^Depends:/d" dist/debian/DEBIAN/control
53
- cat dist/debian/DEBIAN/control
54
- mkdir -p dist/debian/usr/local/bin
55
- cp slterm_linux_amd64 dist/debian/usr/local/bin/slterm
56
- mkdir -p dist/debian/usr/local/share/man/man1
57
- cp src/slterm.1 dist/debian/usr/local/share/man/man1/
58
- mkdir -p dist/debian/usr/local/share/doc/slterm
59
- cp -R README.md LICENSE PATCHES.md doc test dist/debian/usr/local/share/doc/slterm/
60
- dpkg-deb --build dist/debian slterm_$VERSION.deb
61
-
62
- - name : upload package
63
- uses : actions/upload-release-asset@v1
64
- env :
65
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66
- with :
67
- upload_url : ${{ steps.create_release.outputs.upload_url }}
68
- asset_path : slterm_${{ steps.get_version.outputs.version }}.deb
69
- asset_name : slterm_${{ steps.get_version.outputs.version }}.deb
70
- asset_content_type : application/vnd.debian.binary-package
71
-
72
-
73
-
74
-
0 commit comments