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 b9f3fc9 commit d58f9c5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"template": "https://github.com/sphinx-notes/cookiecutter",
"commit": "b0f937e5596c086960ee27cfe0b069947de8a43f",
"checkout": "2023-12-updates",
"commit": "1701bf78ca498d756ce4502aa1712cfe23ed35af",
"checkout": null,
"context": {
"cookiecutter": {
"namespace": "sphinxnotes",
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-lilypond
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/lilypond/changelog.html#version-${{ github.ref_name }}

0 comments on commit d58f9c5

Please sign in to comment.