File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments