-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (58 loc) · 1.62 KB
/
Copy pathrelease.yml
File metadata and controls
70 lines (58 loc) · 1.62 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Release
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
dist:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Configure dpkg to skip docs
run: |
sudo mkdir -p /etc/dpkg/dpkg.cfg.d
echo "path-exclude /usr/share/doc/*" | sudo tee /etc/dpkg/dpkg.cfg.d/01_nodoc
echo "path-exclude /usr/share/man/*" | sudo tee -a /etc/dpkg/dpkg.cfg.d/01_nodoc
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
automake \
autoconf \
pkg-config \
libxml2-dev \
libefl-all-dev \
libeet-bin \
libeina-bin
- name: Generate build system
run: autoreconf --install
- name: Configure project
run: ./configure
- name: Create source tarball (distcheck)
run: make distcheck
- name: Upload source tarball artifact
uses: actions/upload-artifact@v4
with:
name: eradio-src-tarball
path: eradio-*.tar.gz
release:
runs-on: ubuntu-latest
needs: dist
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: eradio-src-tarball
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: eradio-*.tar.gz
generate_release_notes: true
draft: false
prerelease: false