Skip to content

Commit 5047190

Browse files
committed
Update to publish to PyPI.
1 parent 3e69428 commit 5047190

2 files changed

Lines changed: 31 additions & 31 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -38,48 +38,48 @@ jobs:
3838
name: release-dists
3939
path: dist/
4040

41+
# testpypi-publish:
42+
# needs: release-build
43+
# runs-on: ubuntu-latest
44+
# environment: testpypi
45+
# permissions:
46+
# id-token: write
47+
# steps:
48+
# - uses: actions/download-artifact@v4
49+
# with:
50+
# name: release-dists
51+
# path: dist/
52+
# - uses: pypa/gh-action-pypi-publish@release/v1
53+
# with:
54+
# repository-url: https://test.pypi.org/legacy/
55+
4156
publish:
42-
needs: release-build
4357
runs-on: ubuntu-latest
44-
environment: testpypi
58+
needs:
59+
- release-build
4560
permissions:
46-
id-token: write
47-
steps:
48-
- uses: actions/download-artifact@v4
49-
with:
50-
name: release-dists
51-
path: dist/
52-
- uses: pypa/gh-action-pypi-publish@release/v1
53-
with:
54-
repository-url: https://test.pypi.org/legacy/
55-
56-
# pypi-publish:
57-
# runs-on: ubuntu-latest
58-
# needs:
59-
# - release-build
60-
# permissions:
6161
# IMPORTANT: this permission is mandatory for trusted publishing
62-
# id-token: write
62+
id-token: write
6363

6464
# Dedicated environments with protections for publishing are strongly recommended.
6565
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
66-
# environment:
67-
# name: pypi
66+
environment:
67+
name: pypi
6868
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
6969
# url: https://pypi.org/p/YOURPROJECT
7070
#
7171
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
7272
# ALTERNATIVE: exactly, uncomment the following line instead:
7373
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
7474

75-
# steps:
76-
# - name: Retrieve release distributions
77-
# uses: actions/download-artifact@v4
78-
# with:
79-
# name: release-dists
80-
# path: dist/
75+
steps:
76+
- name: Retrieve release distributions
77+
uses: actions/download-artifact@v4
78+
with:
79+
name: release-dists
80+
path: dist/
8181

82-
# - name: Publish release distributions to PyPI
83-
# uses: pypa/gh-action-pypi-publish@release/v1
84-
# with:
85-
# packages-dir: dist/
82+
- name: Publish release distributions to PyPI
83+
uses: pypa/gh-action-pypi-publish@release/v1
84+
with:
85+
packages-dir: dist/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "mdlint-obsidian"
7-
version = "0.2.0"
7+
version = "0.2.3"
88
description = "A linter for Obsidian Flavored Markdown files"
99
readme = "README.md"
1010
license = "MIT"

0 commit comments

Comments
 (0)