-
Notifications
You must be signed in to change notification settings - Fork 7
66 lines (55 loc) · 1.54 KB
/
release.yaml
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
56
57
58
59
60
61
62
63
64
65
66
name: release
permissions:
contents: write
packages: write
statuses: write
pull-requests: read
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: Install packages
run: |
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y build-essential python3-pip fakeroot build-essential devscripts debhelper
pip3 install build wheel2deb
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get version from git tag
id: get_version
uses: battila7/get-version-action@v2
- name: Build partition-manager
run: |
python3 -m build
- name: Build deb
run: |
wheel2deb -x ./dist --depends python3-yaml
wheel2deb build
- name: "Publish release"
uses: "marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ steps.get_version.outputs.version }}"
title: "partition-manager ${{ steps.get_version.outputs.version }}"
files: |
dist/*.whl
dist/*.tar.gz
output/*.deb