Skip to content

Commit aeb808f

Browse files
committed
update
1 parent 6b79db2 commit aeb808f

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed

.github/workflows/pypi.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
1-
name: Create Releases on Tags
1+
name: Publish New Release
22

33
on:
44
push:
55
tags:
66
- "*"
77

88
jobs:
9-
build:
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+
repository-url: https://test.pypi.org/legacy/
24+
password: ${{ secrets.PYPI_TEST_API_TOKEN }}
25+
26+
release:
27+
name: Publish Github Release
28+
needs: [pypi]
1029
runs-on: ubuntu-latest
1130
permissions:
1231
contents: write

0 commit comments

Comments
 (0)