Skip to content

build

build #25

Workflow file for this run

name: build
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
create:
tags:
- v*
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: [ 3.7 ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint
run: flake8
release:
name: Release
runs-on: ubuntu-latest
needs: build
if: success() && github.event_name == 'create' && startsWith(github.ref, 'refs/tags/')
steps:
- name: Perform release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false