forked from williballenthin/python-evtx
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 867 Bytes
/
publish.yml
File metadata and controls
35 lines (32 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# use PyPI trusted publishing, as described here:
# https://blog.trailofbits.com/2023/05/23/trusted-publishing-a-new-benchmark-for-packaging-security/
name: publish to pypi
on:
release:
types: [published]
permissions:
contents: write
jobs:
pypi-publish:
runs-on: ubuntu-latest
environment:
name: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- uses: astral-sh/setup-uv@v5
- name: install
run: uv sync --group build
- name: build package
run: uv run python -m build
- name: upload package artifacts
uses: actions/upload-artifact@v4
with:
path: dist/*
- name: publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
verbose: true
print-hash: true