Skip to content

Commit

Permalink
chore: Update cookiecutter template
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Mar 23, 2024
1 parent 33637ce commit 348a4dd
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/sphinx-notes/template",
"commit": "0b7d8aa478b37114cef369a217bd1d463e369d37",
"commit": "1701bf78ca498d756ce4502aa1712cfe23ed35af",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish New Release

on:
push:
tags:
- "*"

jobs:
pypi:
name: Publish package distributions to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/sphinxnotes-snippet
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pip install build twine && make dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

release:
name: Publish Github Release
needs: [pypi]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: ncipollo/release-action@v1
with:
body: |
Changelog: https://sphinx.silverrainz.me/snippet/changelog.html#version-${{ github.ref_name }}

0 comments on commit 348a4dd

Please sign in to comment.