Skip to content

Commit 8b31163

Browse files
authored
Merge pull request #114 from smkent/manage-cookie
Update project template cruft, dependencies
2 parents 45a5e60 + b94ce61 commit 8b31163

File tree

3 files changed

+88
-79
lines changed

3 files changed

+88
-79
lines changed

.cruft.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": ".",
3-
"commit": "2921bf15f3cf22e8e5c9ae04a5f7e8f52daffbc6",
3+
"commit": "45a5e60428dab6cb6f6382505d8591a050f1a7ba",
44
"context": {
55
"cookiecutter": {
66
"project_name": "Cookiecutter template for new Python projects",
@@ -13,7 +13,8 @@
1313
"author_name": "Stephen Kent",
1414
"author_email": "smkent@smkent.net",
1515
"github_user": "smkent",
16-
"_template": "."
16+
"_template": ".",
17+
"_commit": "45a5e60428dab6cb6f6382505d8591a050f1a7ba"
1718
}
1819
},
1920
"directory": null,

.github/workflows/cd.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,18 @@ on:
1111
push:
1212
tags:
1313
- '*'
14-
workflow_dispatch:
1514

1615
jobs:
1716
Publish:
1817
name: Publish package for ${{ github.ref_name }}
1918

2019
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
2120
runs-on: ubuntu-latest
21+
environment:
22+
name: pypi
23+
url: https://pypi.org/p/Cookiecutter template for new Python projects
24+
permissions:
25+
id-token: write
2226

2327
steps:
2428
- name: 💾 Check out repository
@@ -52,15 +56,12 @@ jobs:
5256
uses: pypa/gh-action-pypi-publish@release/v1
5357
if: ${{ env.ENABLE_TEST_PYPI_PUBLISH == 'true' }}
5458
with:
55-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
5659
repository-url: https://test.pypi.org/legacy/
5760
skip-existing: true
5861

5962
- name: ☢️ Publish to PyPI
6063
if: ${{ env.ENABLE_PYPI_PUBLISH == 'true' }}
6164
uses: pypa/gh-action-pypi-publish@release/v1
62-
with:
63-
password: ${{ secrets.PYPI_API_TOKEN }}
6465

6566
concurrency:
6667
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)