-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.09 KB
/
build.yaml
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
name: Release on Tag
on:
push:
branches:
- main
workflow_dispatch: {}
tags:
- 'v*' # Push events to matching v*, i.e. v1.0
- 'nightly-*'
permissions:
contents: write
jobs:
build-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get install build-essential intltool libgtk-3-dev gcc g++ -y
- name: Download YAD source
run: |
git clone https://github.com/v1cont/yad
- name: Configure Make
working-directory: ./yad
run: |
autoreconf -ivf && intltoolize
- name: Make
working-directory: ./yad/build
run: |
../configure --enable-standalone && make
- name: Package project
working-directory: ./yad/build
run: ls -l .yad && zip --junk-paths yad ./yad
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags')
with:
draft: false
prerelease: false
files: ./yad/build/yad.zip