forked from bwagner/dtbook2sbsform
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.67 KB
/
release.yml
File metadata and controls
55 lines (46 loc) · 1.67 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
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Java
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Install liblouis
run: sudo apt-get install -y liblouis-dev
- name: Install sbs-braille-tables
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release download --repo sbsdev/sbs-braille-tables --pattern '*.deb' --dir /tmp
sudo apt-get install -y /tmp/sbs-braille-tables_*.deb
# Workaround: sbs-braille-tables installs to /usr/local (matching a
# source-built liblouis), but the apt liblouis looks in /usr. Copy
# the tables across so the apt library can find them.
sudo cp -r /usr/local/share/liblouis/tables/. /usr/share/liblouis/tables/
- name: Create generated table stubs
run: |
sudo touch /usr/share/liblouis/tables/sbs-de-g1-white.mod
sudo touch /usr/share/liblouis/tables/sbs-de-g2-name-white.mod
sudo touch /usr/share/liblouis/tables/sbs-de-g2-place-white.mod
sudo touch /usr/share/liblouis/tables/sbs-de-g2-white.mod
- name: Build
run: mvn --batch-mode package
- name: Create GitHub release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION="${{ github.ref_name }}"
gh release create "${{ github.ref_name }}" \
--title "Release ${VERSION#v}" \
--generate-notes \
target/dtbook2sbsform_*.deb