-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify GHA and ensure version is correct
- Loading branch information
Showing
2 changed files
with
8 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,19 +11,15 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Ensures version gets set correctly | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
python-version: "3.x" | ||
|
||
- name: Install Hatch | ||
run: | | ||
|
@@ -36,7 +32,7 @@ jobs: | |
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: urlscan-${{ matrix.python-version }} | ||
name: urlscan | ||
path: dist/ | ||
|
||
publish-to-pypi: | ||
|
@@ -55,7 +51,7 @@ jobs: | |
- name: Download all the dists | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: urlscan-3.13 | ||
name: urlscan | ||
path: dist/ | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
@@ -75,7 +71,7 @@ jobs: | |
- name: Download all the dists | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: urlscan-3.13 | ||
name: urlscan | ||
path: dist/ | ||
- name: Sign the dists with Sigstore | ||
uses: sigstore/[email protected] | ||
|
@@ -119,7 +115,7 @@ jobs: | |
- name: Download all the dists | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: urlscan-3.13 | ||
name: urlscan | ||
path: dist/ | ||
- name: Publish to TestPyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters