Skip to content

Commit 6cbe7f5

Browse files
committed
fix: less step
1 parent d9b6e04 commit 6cbe7f5

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

.github/workflows/package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8-
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
910

1011
jobs:
1112
build:
@@ -14,7 +15,6 @@ jobs:
1415
strategy:
1516
matrix:
1617
python-version: ['3.9', '3.11', '3.12']
17-
1818
steps:
1919
- uses: actions/checkout@v4
2020
- name: Install uv and set the python version

.github/workflows/release.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ jobs:
1010
build:
1111
name: Create Release
1212
runs-on: ubuntu-latest
13-
# Specifying a GitHub environment is optional, but strongly encouraged
1413
environment: pypi
15-
# IMPORTANT: this permission is mandatory for Trusted Publishing
14+
# IMPORTANT: this permission is mandatory for Trusted Publishing and deployment to GitHub Pages
1615
permissions:
16+
contents: read
17+
pages: write
1718
id-token: write
1819
strategy:
1920
matrix:
@@ -23,22 +24,15 @@ jobs:
2324
uses: actions/checkout@v4
2425
with:
2526
fetch-depth: 0
26-
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v5
28-
with:
29-
python-version: ${{ matrix.python-version }}
30-
- name: Install uv
27+
- name: Install uv and set up python ${{ matrix.python-version }}
3128
uses: astral-sh/setup-uv@v5
3229
with:
33-
version: "0.5.18"
30+
version: "0.5.18"
31+
python-version: ${{ matrix.python-version }}
3432
- name: Install dependencies
3533
run: make install
3634
- name: Build and publish to pypi
3735
run: uv run poe publish
38-
- name: Build and publish Documentation
39-
run: |
40-
uv run poe docs
41-
uv run poe docs-publish
4236
- name: Create Release
4337
id: create_release
4438
uses: actions/create-release@v1
@@ -49,3 +43,7 @@ jobs:
4943
release_name: Release ${{ github.ref }}
5044
draft: false
5145
prerelease: false
46+
- name: Build and publish Documentation
47+
run: |
48+
uv run poe docs
49+
uv run poe docs-publish

0 commit comments

Comments
 (0)