Skip to content

Commit

Permalink
fix publish pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
pkucmus committed Nov 21, 2023
1 parent d89cf08 commit 58cb151
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- main

env:
STABLE_PYTHON_VERSION: '3.11'
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"

permissions:
contents: write

Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
types:
- published

env:
STABLE_PYTHON_VERSION: '3.11'
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"

jobs:
pypi-publish:
name: upload release to PyPI
Expand All @@ -14,5 +19,11 @@ jobs:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Ensure latest pip and hatch
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Make the build
run: hatch build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 58cb151

Please sign in to comment.