Skip to content

Add release

Add release #4

Workflow file for this run

name: Build (master)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
continue-on-error: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install General Dependencies
shell: bash
run: |
sudo apt-get update
sudo apt-get -y install --no-install-recommends python3-dev
- name: Install Python Dependencies
shell: bash
run: |
python -m pip install wheel
python -m pip install pylint yapf
- name: Run YAPF
shell: bash
run: |
python -m yapf --verbose --diff --recursive src
- name: Run Pylint
shell: bash
run: |
python -m pylint src
release:
name: Release
runs-on: ubuntu-latest
needs: lint
continue-on-error: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Detect Version
id: version
shell: bash
run: |
echo "::set-output name=version::$(cat VERSION)"
- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
title: |
v${{ steps.version.outputs.version }}
automatic_release_tag: v${{ steps.version.outputs.version }}
prerelease: false