Skip to content

Commit

Permalink
replace travis with github action
Browse files Browse the repository at this point in the history
the github action builds a release and uploads it to github releases
  • Loading branch information
gdamjan committed Apr 27, 2021
1 parent 11b6a5c commit 651f993
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 45 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Make a release

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
release:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Create a github release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
files: dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

17 changes: 0 additions & 17 deletions travis/build-wheels.sh

This file was deleted.

0 comments on commit 651f993

Please sign in to comment.