Skip to content

Commit

Permalink
Merge pull request #17 from andreped:build-release-ci
Browse files Browse the repository at this point in the history
Implemented release CI
  • Loading branch information
andreped authored Sep 3, 2024
2 parents b2c55cd + b666f9d commit a49fa56
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit a49fa56

Please sign in to comment.