1414
1515permissions :
1616 actions : write
17+ issues : write
1718 contents : read
1819
1920jobs :
2223 runs-on : " ubuntu-20.04"
2324 continue-on-error : ${{ matrix.config.experimental }}
2425 env :
25- USING_COVERAGE : ' 3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.3 '
26+ USING_COVERAGE : ' 3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.5 '
2627
2728 strategy :
2829 fail-fast : False
3334 - {python-version: "3.8", testenvs: "py38-click{7,8},build", experimental: False}
3435 - {python-version: "3.9", testenvs: "py39-click{7,8},build", experimental: False}
3536 - {python-version: "3.10", testenvs: "py310-click{7,8},build", experimental: False}
36- - {python-version: "3.11.0-alpha.3 ", testenvs: "py311-dev-click{7,8},build", experimental: True}
37+ - {python-version: "3.11.0-alpha.5 ", testenvs: "py311-dev-click{7,8},build", experimental: True}
3738
3839 steps :
3940 - name : Checkout 🛎️
@@ -136,21 +137,21 @@ jobs:
136137
137138 - name : Setup Python 🐍
138139 uses : " actions/setup-python@v2"
140+ if : startsWith(github.ref, 'refs/tags/')
139141 with :
140142 python-version : 3.8
141- if : startsWith(github.ref, 'refs/tags/')
142143
143144 - name : Install dependencies 🔧
145+ if : startsWith(github.ref, 'refs/tags/')
144146 run : |
145147 python -m pip install --upgrade pip setuptools wheel
146148 python -m pip install --upgrade tox
147- if : startsWith(github.ref, 'refs/tags/')
148149
149150 - name : Build distributions 📦
151+ if : startsWith(github.ref, 'refs/tags/')
150152 run : |
151153 tox -e build
152154
153- if : startsWith(github.ref, 'refs/tags/')
154155
155156 - name : Upload distribution to PyPI 🚀
156157 if : startsWith(github.ref, 'refs/tags/')
@@ -159,3 +160,11 @@ jobs:
159160 user : __token__
160161 password : ${{ secrets.PYPI_TOKEN }}
161162 skip_existing : true
163+
164+ - name : Close milestone 🚪
165+ if : startsWith(github.ref, 'refs/tags/')
166+ run : |
167+ python -m pip install --upgrade github3.py packaging
168+ python .github/milestones.py
169+ env :
170+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments