Skip to content

Commit 8cffc36

Browse files
CI: Attach project binary to release page (#4)
* Update job Signed-off-by: Andy Kwok <andy.kwok@improving.com> * Skip tag Signed-off-by: Andy Kwok <andy.kwok@improving.com> * Update change Signed-off-by: Andy Kwok <andy.kwok@improving.com> * Update changes Signed-off-by: Andy Kwok <andy.kwok@improving.com> * Rename file Signed-off-by: Andy Kwok <andy.kwok@improving.com> * Test release Signed-off-by: Andy Kwok <andy.kwok@improving.com> * Update job release Signed-off-by: Andy Kwok <andy.kwok@improving.com> * Remove publish job Signed-off-by: Andy Kwok <andy.kwok@improving.com> --------- Signed-off-by: Andy Kwok <andy.kwok@improving.com>
1 parent 05e6145 commit 8cffc36

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,27 @@ jobs:
2323
# by default, it uses a depth of 1
2424
# this fetches all history so that we can read each commit
2525
fetch-depth: 0
26+
27+
- name: Set up Python
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: '3.x'
31+
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install setuptools wheel twine
36+
37+
- name: Build artifact
38+
run: |
39+
make dist
40+
2641
- name: Generate Changelog
2742
run: .github/release_message.sh > release_message.md
43+
2844
- name: Release
2945
uses: softprops/action-gh-release@v2
3046
with:
3147
body_path: release_message.md
48+
files: ./dist/nx_neptune-*.whl
3249

33-
deploy:
34-
needs: release
35-
runs-on: ubuntu-latest
36-
steps:
37-
- uses: actions/checkout@v4
38-
- name: Set up Python
39-
uses: actions/setup-python@v5
40-
with:
41-
python-version: '3.x'
42-
- name: Install dependencies
43-
run: |
44-
python -m pip install --upgrade pip
45-
pip install setuptools wheel twine
46-
- name: Build and publish
47-
env:
48-
TWINE_USERNAME: __token__
49-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
50-
run: |
51-
python -m pip wheel -w dist .
52-
twine upload dist/*

0 commit comments

Comments
 (0)