Merge pull request #35 from andreped/readme-ci-update #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |