-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (57 loc) · 1.49 KB
/
main.yml
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
name: Build and release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
name: kibbe-linux-64
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.9.5'
- name: build
run: |
make build name=${{ matrix.name }}
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.name }}
path: dist/${{ matrix.name }}
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
path: release-files/
- name: Display structure of downloaded files
run: ls -R
working-directory: release-files/
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "./release-files/kibbe-linux-64/kibbe-linux-64"
token: ${{ secrets.GITHUB_TOKEN }}
release-pip:
needs: build
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.9.5'
- name: release pip
run: make publish-pip token=${{ secrets.PYPI_TOKEN }}