File tree 1 file changed +2
-18
lines changed
1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
push :
6
6
tags :
7
- - ' *' # Trigger on all tags initially
7
+ - ' *' # Trigger on all tags initially, but tag and release privilege are verified in _build-wheel-release-upload.yml
8
8
9
9
jobs :
10
- tag-check :
11
- runs-on : ubuntu-latest
12
- outputs :
13
- tag_valid : ${{ steps.tag-check.outputs.tag_valid }}
14
- steps :
15
- - name : Extract and validate tag for (pre)-release
16
- id : tag-check
17
- run : |
18
- TAG_NAME=${GITHUB_REF#refs/tags/}
19
-
20
- # Check if the tag matches the pattern, e.g. 3.1.32 or 0.1.3rc0
21
- if [[ "$TAG_NAME" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || [[ "$TAG_NAME" =~ ^[0-9]+\.[0-9]+\.[0-9]+rc[0-9]+$ ]]; then
22
- echo "tag_valid=true" >> $GITHUB_OUTPUT
23
- fi
24
-
25
10
release :
26
- needs : tag-check
27
- if : needs.tag-check.outputs.tag_valid == 'true'
28
11
permissions :
29
12
contents : write
30
13
uses : Billingegroup/release-scripts/.github/workflows/_build-wheel-release-upload.yml@v0
31
14
with :
32
15
project : diffpy.snmf
33
16
secrets :
34
17
PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
18
+ PAT_TOKEN : ${{ secrets.PAT_TOKEN }}
You can’t perform that action at this time.
0 commit comments