Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Mar 23, 2024
1 parent 6b79db2 commit aeb808f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/pypi.yml

This file was deleted.

23 changes: 21 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
name: Create Releases on Tags
name: Publish New Release

on:
push:
tags:
- "*"

jobs:
build:
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:
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_TEST_API_TOKEN }}

release:
name: Publish Github Release
needs: [pypi]
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit aeb808f

Please sign in to comment.