Skip to content

Commit 348a4dd

Browse files
committed
chore: Update cookiecutter template
1 parent 33637ce commit 348a4dd

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.cruft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/sphinx-notes/template",
3-
"commit": "0b7d8aa478b37114cef369a217bd1d463e369d37",
3+
"commit": "1701bf78ca498d756ce4502aa1712cfe23ed35af",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish New Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
pypi:
10+
name: Publish package distributions to PyPI
11+
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
url: https://pypi.org/p/sphinxnotes-snippet
15+
permissions:
16+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-python@v5
20+
- run: pip install build twine && make dist
21+
- uses: pypa/gh-action-pypi-publish@release/v1
22+
with:
23+
password: ${{ secrets.PYPI_API_TOKEN }}
24+
25+
release:
26+
name: Publish Github Release
27+
needs: [pypi]
28+
runs-on: ubuntu-latest
29+
permissions:
30+
contents: write
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: ncipollo/release-action@v1
34+
with:
35+
body: |
36+
Changelog: https://sphinx.silverrainz.me/snippet/changelog.html#version-${{ github.ref_name }}

0 commit comments

Comments
 (0)