From 0955c9fa784e5de614b79615639fce662feadfaf Mon Sep 17 00:00:00 2001 From: Alberto Geniola Date: Mon, 25 May 2020 20:15:46 +0200 Subject: [PATCH] Create build-prerelease --- .github/workflows/build-prerelease | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build-prerelease diff --git a/.github/workflows/build-prerelease b/.github/workflows/build-prerelease new file mode 100644 index 00000000..3a98f039 --- /dev/null +++ b/.github/workflows/build-prerelease @@ -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