@@ -55,39 +55,39 @@ jobs:
55
55
with :
56
56
python-version : " 3.8"
57
57
- name : Set release notes tag
58
- if : ${{ github.event.inputs.publish_docs_only == " false" }}
58
+ if : ${{ github.event.inputs.publish_docs_only == false }}
59
59
run : |
60
60
RELEASE_TAG_VERSION=${{ github.event.release.tag_name }}
61
61
# Replace publishing version if the workflow was triggered manually
62
62
test -n ${RELEASE_TAG_VERSION} && RELEASE_TAG_VERSION=${{ github.event.inputs.publish_version }}
63
63
echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION:1}" >> $GITHUB_ENV
64
64
- name : Ensure new version is also set in pyproject and CHANGELOG
65
- if : ${{ github.event.inputs.publish_docs_only == " false" }}
65
+ if : ${{ github.event.inputs.publish_docs_only == false }}
66
66
run : |
67
67
grep --regexp "${RELEASE_TAG_VERSION}" CHANGELOG.md
68
68
grep --regexp "version \= \"${RELEASE_TAG_VERSION}\"" pyproject.toml
69
69
- name : Install dependencies
70
70
run : make dev
71
71
- name : Run all tests, linting and baselines
72
- if : ${{ github.event.inputs.publish_docs_only == " false" }}
72
+ if : ${{ github.event.inputs.publish_docs_only == false }}
73
73
run : make pr
74
74
- name : Build python package and wheel
75
- if : ${{ github.event.inputs.publish_docs_only == " false" }}
75
+ if : ${{ github.event.inputs.publish_docs_only == false }}
76
76
run : poetry build
77
77
- name : Upload to PyPi test
78
- if : ${{ github.event.inputs.publish_docs_only == " false" }}
78
+ if : ${{ github.event.inputs.publish_docs_only == false }}
79
79
run : make release-test
80
80
env :
81
81
PYPI_USERNAME : __token__
82
82
PYPI_TEST_TOKEN : ${{ secrets.PYPI_TEST_TOKEN }}
83
83
- name : Upload to PyPi prod
84
- if : ${{ github.event.inputs.publish_docs_only == " false" }}
84
+ if : ${{ github.event.inputs.publish_docs_only == false }}
85
85
run : make release-prod
86
86
env :
87
87
PYPI_USERNAME : __token__
88
88
PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
89
89
- name : publish lambda layer in SAR by triggering the internal codepipeline
90
- if : ${{ github.event.inputs.publish_docs_only == " false" }}
90
+ if : ${{ github.event.inputs.publish_docs_only == false }}
91
91
run : |
92
92
aws ssm put-parameter --name "powertools-python-release-version" --value $RELEASE_TAG_VERSION --overwrite
93
93
aws codepipeline start-pipeline-execution --name ${{ secrets.CODEPIPELINE_NAME }}
@@ -124,7 +124,7 @@ jobs:
124
124
runs-on : ubuntu-latest
125
125
steps :
126
126
- uses : actions/checkout@v2
127
- if : ${{ github.event.inputs.publish_docs_only == " false" }}
127
+ if : ${{ github.event.inputs.publish_docs_only == false }}
128
128
- name : Sync master from detached head
129
129
# If version matches CHANGELOG and pyproject.toml
130
130
# If it passes all checks, successfully releases to test and prod
0 commit comments