Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/bump.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
echo "Bumping version to ${VERSION}"
echo "v${VERSION}" > VERSION
echo "${VERSION}" > VERSION
39 changes: 31 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,47 @@ on:
workflow_dispatch:

jobs:
release-pypi:
build-pypi:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.x"
cache: 'pip'
- name: Build and Publish
env:
HATCH_INDEX_USER: ${{ secrets.PYPI_USERNAME }}
HATCH_INDEX_AUTH: ${{ secrets.PYPI_PASSWORD }}
- name: Build distributions
run: |
python -m pip install --upgrade pip
pip install -U hatch
hatch build
hatch publish
python -m pip install build hatchling
python -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v5
with:
name: python-package-distributions
path: dist/

release-pypi:
name: Upload release to PyPI
needs:
- build-pypi
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/mkdocs-simple-plugin
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v6
with:
name: python-package-distributions
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

release-docker:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dist/
venv/
docs/
artifact.tar
.env
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.0.1
4.0.1
Loading