Skip to content

Commit

Permalink
Simplify GHA and ensure version is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
firecat53 committed Nov 18, 2024
1 parent 275012e commit 089d2ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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]
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ Homepage = "https://github.com/firecat53/urlscan"
source = "vcs"
fallback-version = "0.0.0"

#[tool.hatch.version.raw-options]
#local_scheme = "no-local-version"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"

[tool.hatch.build.hooks.vcs]
version-file = "urlscan/_version.py"
Expand Down

0 comments on commit 089d2ec

Please sign in to comment.