Skip to content

Commit 5c3d53a

Browse files
committed
chore: add .deb build to github actions
Signed-off-by: t0b3 <thomas.bettler@gmail.com>
1 parent 10d2008 commit 5c3d53a

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/build-deb.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build .deb
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
# branches:
8+
# - master
9+
10+
jobs:
11+
package:
12+
name: Create .deb
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python 3.9
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.9
21+
- name: 🐧 install Inkscape
22+
run: |
23+
sudo add-apt-repository ppa:inkscape.dev/stable -y # inkscape 1.1 from https://launchpad.net/~inkscape.dev/+archive/ubuntu/stable
24+
sudo apt-get update
25+
sudo apt-get -y install inkscape
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
- name: Branch name
29+
id: branch_name
30+
run: |
31+
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
32+
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
33+
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
34+
echo ::set-output name=SOURCE_TAG_VERSION::$( echo ${GITHUB_REF#refs/tags/} | sed -e 's/^v//' )
35+
echo ::set-output name=SOURCE_SOURCE_VERSION::$( python3 ./sendto_silhouette.py --version )
36+
- name: build .deb Package
37+
run: |
38+
make dist
39+
# - name: branch_version
40+
# env:
41+
# SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
42+
# SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
43+
# SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
44+
# SOURCE_TAG_VERSION: ${{ steps.branch_name.outputs.SOURCE_TAG_VERSION }}
45+
# run: |
46+
# echo $SOURCE_NAME
47+
# echo $SOURCE_BRANCH
48+
# echo $SOURCE_TAG
49+
# echo $SOURCE_TAG_VERSION
50+
- name: Upload .deb Package
51+
uses: actions/upload-artifact@v2.2.3
52+
with:
53+
name: inkscape-silhouette_${{ steps.branch_name.outputs.SOURCE_SOURCE_VERSION }}-1_all.deb
54+
path: distribute/out/inkscape-silhouette_${{ steps.branch_name.outputs.SOURCE_SOURCE_VERSION }}-1_all.deb

0 commit comments

Comments
 (0)