Skip to content

Commit

Permalink
Merge pull request #114 from smkent/manage-cookie
Browse files Browse the repository at this point in the history
Update project template cruft, dependencies
  • Loading branch information
smkent authored Jan 15, 2025
2 parents 45a5e60 + b94ce61 commit 8b31163
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 79 deletions.
5 changes: 3 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": ".",
"commit": "2921bf15f3cf22e8e5c9ae04a5f7e8f52daffbc6",
"commit": "45a5e60428dab6cb6f6382505d8591a050f1a7ba",
"context": {
"cookiecutter": {
"project_name": "Cookiecutter template for new Python projects",
Expand All @@ -13,7 +13,8 @@
"author_name": "Stephen Kent",
"author_email": "smkent@smkent.net",
"github_user": "smkent",
"_template": "."
"_template": ".",
"_commit": "45a5e60428dab6cb6f6382505d8591a050f1a7ba"
}
},
"directory": null,
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ on:
push:
tags:
- '*'
workflow_dispatch:

jobs:
Publish:
name: Publish package for ${{ github.ref_name }}

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

steps:
- name: 💾 Check out repository
Expand Down Expand Up @@ -52,15 +56,12 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ env.ENABLE_TEST_PYPI_PUBLISH == 'true' }}
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true

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

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
Loading

0 comments on commit 8b31163

Please sign in to comment.