-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 975 Bytes
/
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
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: Make
run: |
autoreconf -ivf && intltoolize
mkdir build && cd build
../configure --enable-standalone && make
- name: Package project
# junk paths remove to recreate the path where is the file inside the zip package
run: zip --junk-paths yad build/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.zip