File tree Expand file tree Collapse file tree 3 files changed +86
-0
lines changed
Expand file tree Collapse file tree 3 files changed +86
-0
lines changed Original file line number Diff line number Diff line change 1+ name : release
2+
3+ permissions :
4+ contents : write
5+ packages : write
6+ statuses : write
7+ pull-requests : read
8+
9+ on :
10+ push :
11+ tags :
12+ - " v*"
13+
14+ jobs :
15+ release :
16+ name : release
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - name : Setup Go
21+ uses : actions/setup-go@v2
22+ with :
23+ go-version : 1.17
24+
25+ - name : Setup python
26+ uses : actions/setup-python@v2
27+ with :
28+ python-version : ' 3.x'
29+ architecture : ' x64'
30+
31+ - name : Install packages
32+ run : |
33+ sudo apt-get update
34+ sudo apt-get upgrade -y
35+ sudo apt-get install -y build-essential python-setuptools python3-pip
36+ pip3 install setuptools
37+
38+ - name : Checkout
39+ uses : actions/checkout@v2
40+ with :
41+ fetch-depth : 0
42+
43+ - name : Get version from git tag
44+ id : get_version
45+ uses : battila7/get-version-action@v2
46+
47+ - name : Install nFPM
48+ run : |
49+ go install github.com/goreleaser/nfpm/v2/cmd/nfpm@v2.11.3
50+
51+ - name : Build partition-manager
52+ run : |
53+ mkdir install
54+ python3 setup.py install --root "install/" --prefix "/usr/local" --install-lib "/usr/lib/python3/dist-packages"
55+
56+ - name : Build deb
57+ run : |
58+ SEMVER=${{ steps.get_version.outputs.version }}
59+ mkdir nfpm-pkg
60+ nfpm package -p deb --target "nfpm-pkg/"
61+
62+ - name : " Publish release"
63+ uses : " marvinpinto/action-automatic-releases@latest"
64+ with :
65+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
66+ automatic_release_tag : " ${{ steps.get_version.outputs.version }}"
67+ title : " partition-manager ${{ steps.get_version.outputs.version }}"
68+ files : |
69+ nfpm-pkg/*.deb
Original file line number Diff line number Diff line change 1+ name : " python3-mariadb-sequential-partition-manager"
2+ arch : amd64
3+ version : ${SEMVER}
4+ version_metadata : git
5+
6+ maintainer : Let's Encrypt <opensource@letsencrypt.org>
7+ license : MPL
8+ depends :
9+ - python3-yaml
10+ disable_globbing : false
11+
12+ contents :
13+ - src : ./install/usr/**/*
14+ dst : /usr/
15+
16+ deb :
Original file line number Diff line number Diff line change 2323 extras_require = {"pymysql" : ["PyMySQL >= 1.0.2" ]},
2424 packages = ["partitionmanager" ],
2525 entry_points = {"console_scripts" : ["partition-manager=partitionmanager.cli:main" ]},
26+ options = {"build_scripts" : {"executable" : "/usr/bin/env python" }},
2627)
You can’t perform that action at this time.
0 commit comments