Skip to content

Commit 330b8ba

Browse files
authored
Merge pull request #16 from executablebooks/ci-fix-action-versions
πŸ”§ MAINTAIN: keep GitHub Actions up to date
2 parents 8f96af4 + 2856391 commit 330b8ba

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

β€Ž.github/dependabot.ymlβ€Ž

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ updates:
99
directory: "/" # Location of package manifests
1010
schedule:
1111
interval: "monthly"
12+
- package-ecosystem: "github-actions"
13+
directory: "/"
14+
schedule:
15+
interval: "monthly"
16+
groups:
17+
all-dependencies:
18+
update-types:
19+
- "major"
20+
- "minor"
21+
- "patch"

β€Ž.github/workflows/tests.ymlβ€Ž

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ jobs:
8383
uses: actions/setup-python@v5
8484
with:
8585
python-version: "3.x"
86-
- name: Upgrade Pip
87-
run: python -m pip install --upgrade pip
88-
- name: Install Poetry
89-
run: python -m pip install build
86+
- name: Install build tooling
87+
run: python -m pip install --upgrade pip build
9088
- name: Build a binary wheel and a source tarball
9189
run: python3 -m build
9290
- name: Store the distribution packages
@@ -98,7 +96,7 @@ jobs:
9896
publish-to-pypi:
9997
name: >-
10098
Publish Python 🐍 distribution πŸ“¦ to PyPI
101-
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
99+
if: startsWith(github.ref, 'refs/tags/v') # only publish to PyPI on tag pushes
102100
needs:
103101
- build
104102
runs-on: ubuntu-latest
@@ -120,6 +118,7 @@ jobs:
120118
name: >-
121119
Sign the Python 🐍 distribution πŸ“¦ with Sigstore
122120
and upload them to GitHub Release
121+
if: startsWith(github.ref, 'refs/tags/v')
123122
needs:
124123
- publish-to-pypi
125124
runs-on: ubuntu-latest
@@ -135,7 +134,7 @@ jobs:
135134
name: python-package-distributions
136135
path: dist/
137136
- name: Sign the dists with Sigstore
138-
uses: sigstore/gh-action-sigstore-python@v2.1.1
137+
uses: sigstore/gh-action-sigstore-python@v3.0.1
139138
with:
140139
inputs: >-
141140
./dist/*.tar.gz

0 commit comments

Comments
Β (0)