File tree Expand file tree Collapse file tree 2 files changed +39
-20
lines changed Expand file tree Collapse file tree 2 files changed +39
-20
lines changed Original file line number Diff line number Diff line change 1- name : Publish (PyPI)
1+ name : Publish (PyPI) & Release
22
33on :
44 push :
1717
1818 steps :
1919 - uses : actions/checkout@v5
20+ with :
21+ fetch-depth : 0
22+
2023 - uses : actions/setup-python@v6
2124 with :
2225 python-version : " 3.13"
4447
4548 - name : Publish to PyPI
4649 uses : pypa/gh-action-pypi-publish@release/v1
50+
51+ # Make build artifacts available to the 'release' job
52+ - name : Upload build artifacts
53+ uses : actions/upload-artifact@v4
54+ with :
55+ name : dist
56+ path : dist/*
57+ if-no-files-found : error # fail the job if no files are found
58+
59+ release :
60+ runs-on : ubuntu-latest
61+ needs : [build-publish]
62+ permissions :
63+ contents : write
64+ steps :
65+ - uses : actions/checkout@v5
66+
67+ - name : Download dist artifacts
68+ uses : actions/download-artifact@v4
69+ with :
70+ name : dist
71+ path : dist
72+
73+ - name : Checksums
74+ run : |
75+ shasum -a 256 dist/* > dist/SHA256SUMS.txt
76+ echo "SHA256 checksums:"
77+ cat dist/SHA256SUMS.txt
78+
79+ - name : Create GitHub Release
80+ uses : softprops/action-gh-release@v2
81+ with :
82+ body_path : ${{ github.workspace }}/docs/CHANGELOG.md
83+ files : |
84+ dist/*
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments