Skip to content

Commit 65b1b59

Browse files
authored
Merge pull request #59 from brenard/fix-ci
Correction de la CI & du paquet Debian
2 parents ea24835 + 8898e6c commit 65b1b59

File tree

2 files changed

+81
-1
lines changed

2 files changed

+81
-1
lines changed

.github/workflows/release.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Build all Debian package and publish new release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
container: node:20-trixie-slim
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Install requirements
15+
run: |
16+
apt-get update
17+
apt-get install --yes --no-install-recommends build-essential debhelper qtbase5-dev lilypond timidity timidity-interfaces-extra freepats libpoppler-qt5-dev qtmultimedia5-dev locales git python3-git wget sed ca-certificates
18+
- name: Generate fr_FR.UTF-8 locale
19+
run: |
20+
sed -i 's/^# fr_FR.UTF-8/fr_FR.UTF-8/' /etc/locale.gen
21+
locale-gen
22+
- name: Install Gitdch and update Debian changelog
23+
run: |
24+
wget -O /usr/local/bin/gitdch https://gitea.zionetrix.net/bn8/gitdch/raw/master/gitdch
25+
chmod +x /usr/local/bin/gitdch
26+
git config --global --add safe.directory $(pwd)
27+
/usr/local/bin/gitdch \
28+
--package-name tabliato \
29+
--version "$(git describe --tags | sed 's/^[^0-9]*//')" \
30+
--code-name stable \
31+
--output debian/changelog \
32+
--append \
33+
--revision "$( git log --oneline -n1 -- debian/changelog | cut -d' ' -f1 )..HEAD" \
34+
--verbose \
35+
--maintainer-name "Jean-Romain Roussel" \
36+
--maintainer-email "jromain.roussel@gmail.com" \
37+
--exclude "^CI: " \
38+
--exclude "README\.md" \
39+
--exclude "^Merge branch "
40+
- name: Build Debian packages
41+
run: dpkg-buildpackage --build=binary --no-sign
42+
- name: Prepare distribution files
43+
run: |
44+
mkdir dist
45+
mv ../tabliato_*_amd64.deb dist/tabliato_amd64.deb
46+
mv ../tabliato-dbgsym_*_amd64.deb dist/tabliato-dbgsym_amd64.deb
47+
- name: Upload built files
48+
uses: actions/upload-artifact@v4.4.3
49+
with:
50+
name: dist
51+
path: |
52+
dist/*.deb
53+
publish:
54+
runs-on: ubuntu-latest
55+
if: github.ref_type == 'tag'
56+
needs: build
57+
steps:
58+
- uses: actions/checkout@v4
59+
- name: "Download built files"
60+
uses: actions/download-artifact@v4.1.8
61+
- name: Generate changelog
62+
id: changelog
63+
uses: janheinrichmerker/action-github-changelog-generator@v2.3
64+
with:
65+
token: ${{ secrets.GITHUB_TOKEN }}
66+
onlyLastTag: true
67+
- name: Create release
68+
uses: softprops/action-gh-release@v2.0.9
69+
id: create_release
70+
with:
71+
draft: false
72+
prerelease: false
73+
tag_name: ${{ steps.changelog.outputs.toTag }}
74+
name: ${{ steps.changelog.outputs.toTag }}
75+
body: ${{ steps.changelog.outputs.changelog }}
76+
make_latest: "true"
77+
files: |
78+
*.deb
79+
env:
80+
GITHUB_TOKEN: ${{ github.token }}

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Package: tabliato
1010
Section: sound
1111
Priority: optional
1212
Architecture: any
13-
Depends: ${shlibs:Depends}, lilypond, timidity, freepats, timidity-interfaces-extra, libqt5multimedia5-plugins
13+
Depends: lilypond, timidity, freepats, timidity-interfaces-extra, libqt5multimedia5-plugins
1414
Description: Tablatures de qualité pour accordéon diatonique
1515
Tabliato est un logiciel permettant de créer rapidement
1616
et facilement des tablatures pour accordéon diatonique

0 commit comments

Comments
 (0)