mbox-extractor 0.1.4__tar.gz → 0.1.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,11 @@ name: Release
3
3
  on:
4
4
  push:
5
5
  branches: [main]
6
+ paths: [pyproject.toml]
7
+
8
+ concurrency:
9
+ group: release
10
+ cancel-in-progress: false
6
11
 
7
12
  permissions:
8
13
  contents: write
@@ -11,8 +16,7 @@ permissions:
11
16
  jobs:
12
17
  release:
13
18
  runs-on: ubuntu-latest
14
- outputs:
15
- created: ${{ steps.check.outputs.exists == 'false' }}
19
+ environment: pypi
16
20
  steps:
17
21
  - uses: actions/checkout@v4
18
22
  - name: Get version
@@ -24,26 +28,22 @@ jobs:
24
28
  - name: Check if tag exists
25
29
  id: check
26
30
  run: |
27
- if gh release view "${{ steps.version.outputs.tag }}" &>/dev/null; then
31
+ if git tag -l "${{ steps.version.outputs.tag }}" | grep -q .; then
28
32
  echo "exists=true" >> "$GITHUB_OUTPUT"
29
33
  else
30
34
  echo "exists=false" >> "$GITHUB_OUTPUT"
31
35
  fi
32
- env:
33
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36
+ - name: Setup uv
37
+ if: steps.check.outputs.exists == 'false'
38
+ uses: astral-sh/setup-uv@v4
39
+ - name: Build package
40
+ if: steps.check.outputs.exists == 'false'
41
+ run: uv build
34
42
  - name: Create release
35
43
  if: steps.check.outputs.exists == 'false'
36
- run: gh release create "${{ steps.version.outputs.tag }}" --title "${{ steps.version.outputs.tag }}" --generate-notes
44
+ run: gh release create "${{ steps.version.outputs.tag }}" --title "${{ steps.version.outputs.tag }}" --generate-notes dist/*
37
45
  env:
38
46
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39
-
40
- publish:
41
- needs: release
42
- if: needs.release.outputs.created == 'true'
43
- runs-on: ubuntu-latest
44
- environment: pypi
45
- steps:
46
- - uses: actions/checkout@v4
47
- - uses: astral-sh/setup-uv@v4
48
- - run: uv build
49
- - uses: pypa/gh-action-pypi-publish@release/v1
47
+ - name: Publish to PyPI
48
+ if: steps.check.outputs.exists == 'false'
49
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mbox-extractor
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Recursively extract attachments from .mbox files
5
5
  Project-URL: Homepage, https://github.com/tsilva/mbox-extractor
6
6
  Project-URL: Repository, https://github.com/tsilva/mbox-extractor
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "mbox-extractor"
7
- version = "0.1.4"
7
+ version = "0.1.5"
8
8
  description = "Recursively extract attachments from .mbox files"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes