Skip to content

Commit

Permalink
chore: Sync with template
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Apr 30, 2024
1 parent 16abae1 commit d74c62b
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/cookiecutter",
"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-any
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/any/changelog.html#version-${{ github.ref_name }}

0 comments on commit d74c62b

Please sign in to comment.