Skip to content

[REMOVE] python version 3.7 and 3.13 #35

[REMOVE] python version 3.7 and 3.13

[REMOVE] python version 3.7 and 3.13 #35

Workflow file for this run

name: Continuous Delivery
on:
push:
branches:
- main
jobs:
build:
name: Create Release
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get version from setup.cfg
id: get-version
run: echo "::set-output name=version::$(awk -F "=" '/^version/ {print $2}' setup.cfg | tr -d '[:space:]')"
- name: Check if release exists
id: check_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if gh release view v${{ steps.get-version.outputs.version }} > /dev/null 2>&1; then
echo "release_exists=true" >> $GITHUB_ENV
else
echo "release_exists=false" >> $GITHUB_ENV
fi
- name: Create Release
if: env.release_exists == 'false'
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.get-version.outputs.version }}
release_name: Release v${{ steps.get-version.outputs.version }}
draft: false
prerelease: false