-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.44 KB
/
makefile.yml
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
name: Build and Release
on:
workflow_dispatch: {}
push:
branches: [ master ]
paths-ignore:
- '**.md'
pull_request:
branches: [ master ]
paths-ignore:
- '**.md'
env:
ver_num: "1.0.${{ github.run_number }}"
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Run Make
run: "VERSION=${{ env.ver_num }} make"
- name: Package deb file
run: "VERSION=${{ env.ver_num }} make package"
- name: Upload a Build Artifact - deb
uses: actions/upload-artifact@v4.3.2
with:
name: "prompt_${{ env.ver_num }}.deb"
path: "package/prompt_${{ env.ver_num }}.deb"
if-no-files-found: error
retention-days: 90
- name: Upload a Build Artifact - zip
uses: actions/upload-artifact@v4.3.2
with:
name: "prompt_${{ env.ver_num }}"
path: "package/prompt_${{ env.ver_num }}.zip"
if-no-files-found: error
retention-days: 90
- name: Create Release
uses: ncipollo/release-action@v1.14.0
with:
artifactErrorsFailBuild: true
artifacts: "package/prompt_${{ env.ver_num }}.deb,package/prompt_${{ env.ver_num }}.zip"
commit: "${{ github.sha }}"
#draft: false
tag: "v${{ env.ver_num }}"
name: "v${{ env.ver_num }}"
token: ${{ github.token }}