Skip to content

Commit 46a58be

Browse files
authored
Merge pull request #24 from snu-hanaro/chore/publish-pypi-release-artifacts
chore(ci): consolidate release into publish workflow
2 parents 1d099e1 + dbfcf57 commit 46a58be

File tree

2 files changed

+39
-20
lines changed

2 files changed

+39
-20
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish (PyPI)
1+
name: Publish (PyPI) & Release
22

33
on:
44
push:
@@ -17,6 +17,9 @@ jobs:
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"
@@ -44,3 +47,38 @@ jobs:
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/*

.github/workflows/release-notes.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)