-
Notifications
You must be signed in to change notification settings - Fork 14
57 lines (46 loc) · 1.23 KB
/
continuous.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
# Srevin Saju (c) 2020
# MIT License
# Source: https://github.com/srevinsaju/guiscrcpy
name: Continuous
on:
- push
jobs:
Wheel:
runs-on: ubuntu-18.04
strategy:
matrix:
version: ['3.8']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.version }}
- name: Build wheel
run: |
python -m pip install wheel
python setup.py bdist_wheel
export VERSION=$(ls dist)
- name: Upload artifact
uses: actions/[email protected]
with:
name: aslo4-continuous-none-any-py3.whl
path: dist/${{ env.VERSION }}
Release:
needs: [Wheel]
runs-on: ubuntu-latest
strategy:
matrix:
version: [3.8]
steps:
- uses: actions/[email protected]
with:
name: aslo4-continuous-none-any-py3.whl
- name: Release
uses: marvinpinto/action-automatic-releases@latest
if: github.ref == 'refs/heads/master' && startsWith(github.ref, 'refs/tags/') != true
with:
automatic_release_tag: continuous
title: continuous
files: |
aslo4-continuous-none-any-py3.whl
repo_token: ${{ secrets.GITHUB_TOKEN }}