Skip to content

Commit

Permalink
Create build-prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogeniola authored May 25, 2020
1 parent 70a5442 commit 0955c9f
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-prerelease
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build pre-release

on:
push:
branches: [ development-0.4.X.X ]

jobs:
build:
name: Build on node ${{matrix.python_version}}
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ['3.6', '3.7', '3.8']

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup Python ${{matrix.python_version}}
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python_version}}
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools wheel
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build artifact
run: python setup.py sdist bdist_wheel
- name: Create a Release
uses: actions/create-release@v1
with:
# The name of the tag. This should come from the webhook payload, `github.GITHUB_REF` when a user pushes a new tag
tag_name: $GITHUB_RUN_NUMBER
# The name of the release. For example, `Release v1.0.1`
release_name: Development release $GITHUB_RUN_NUMBER
# `true` to identify the release as a prerelease. `false` to identify the release as a full release. Default: `false`
prerelease: true

0 comments on commit 0955c9f

Please sign in to comment.