-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (37 loc) · 1008 Bytes
/
release.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
name: Create Release
on:
workflow_dispatch:
push:
tags:
- '*'
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: '3.6'
- name: Install dependencies
run: pip install wheel setuptools
- name: Build package
run: python setup.py bdist_wheel
- name: Upload Python wheel
uses: actions/upload-artifact@v3
with:
name: "Python wheel"
path: ./dist/*
if-no-files-found: error
- name: Upload APK to release
if: ${{ github.event_name == 'release' }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.CI_TOKEN }}
file: ./dist/vsi2tif-*.whl
file_glob: true
tag: ${{ github.ref }}
overwrite: true