Skip to content

Create Release

Create Release #12

Workflow file for this run

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