11# Workflow: Extract version from Python file, verify version against release tag, generate PyPi package and
22# upload content to PyPi Test / Prod
33# Will only be executed when a new release is being published
4- # Author : Joerg Schultze-Lutter
4+ # Author : Joerg Schultze-Lutter, 2022
55#
66# #
77# This program is free software; you can redistribute it and/or modify
6969 REGEX_PATTERN : __version__\s*=\s*"(.*)"
7070
7171 # Python version used for building the package
72- PYTHON_VERSION : ' 3.8 '
72+ PYTHON_VERSION : ' 3.11 '
7373
7474#
7575# Job section
9292
9393 steps :
9494 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
95- - uses : actions/checkout@v4
95+ - uses : actions/checkout@v5
9696
9797 # Read source file
9898 - name : Read source file
@@ -112,7 +112,7 @@ jobs:
112112 # Cancellation will have no immediate effect!!!
113113 - name : Cancel build if version not found
114114 if : ${{ steps.regex.outputs.match == '' }}
115- uses : andymckay/cancel-action@0.4
115+ uses : andymckay/cancel-action@0.5
116116 # Execute sleep if cancellation was triggered
117117 - name : Sleep if build was cancelled
118118 if : ${{ steps.regex.outputs.match == '' }}
@@ -123,7 +123,7 @@ jobs:
123123 # assigned by Github; only if you tag a release, this value will be 'tag'
124124 - name : Cancel build if Github reference is not equal to tag
125125 if : ${{ github.ref_type != 'tag' }}
126- uses : andymckay/cancel-action@0.4
126+ uses : andymckay/cancel-action@0.5
127127 # Execute sleep if cancellation was triggered
128128 - name : Sleep if build was cancelled
129129 if : ${{ github.ref_type != 'tag' }}
@@ -133,7 +133,7 @@ jobs:
133133 # Cancel the work flow if assessment is not true
134134 - name : Cancel build if Github refname is not equal to Python version
135135 if : ${{ github.ref_name != steps.regex.outputs.group1 }}
136- uses : andymckay/cancel-action@0.4
136+ uses : andymckay/cancel-action@0.5
137137 # Execute sleep if cancellation was triggered
138138 - name : Sleep if build was cancelled
139139 if : ${{ github.ref_name != steps.regex.outputs.group1 }}
@@ -159,10 +159,10 @@ jobs:
159159
160160 steps :
161161
162- - uses : actions/checkout@v4
162+ - uses : actions/checkout@v5
163163 # Set up Python environment
164164 - name : Set up Python
165- uses : actions/setup-python@v4
165+ uses : actions/setup-python@v6
166166 with :
167167 python-version : ' ${{ env.PYTHON_VERSION }}'
168168
0 commit comments