Skip to content

Commit 63fa210

Browse files
Update job release
Signed-off-by: Andy Kwok <andy.kwok@improving.com>
1 parent 758df4b commit 63fa210

File tree

1 file changed

+37
-42
lines changed

1 file changed

+37
-42
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,56 +12,51 @@ on:
1212
workflow_dispatch:
1313

1414
jobs:
15-
# release:
16-
# name: Create Release
17-
# runs-on: ubuntu-latest
18-
# permissions:
19-
# contents: write
20-
# steps:
21-
# - uses: actions/checkout@v4
22-
# with:
23-
# # by default, it uses a depth of 1
24-
# # this fetches all history so that we can read each commit
25-
# fetch-depth: 0
26-
# - name: Generate Changelog
27-
# run: .github/release_message.sh > release_message.md
28-
# - name: Release
29-
# uses: softprops/action-gh-release@v2
30-
# with:
31-
# body_path: release_message.md
32-
33-
deploy:
34-
# needs: release
15+
release:
16+
name: Create Release
3517
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
3620
steps:
37-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v4
22+
with:
23+
# by default, it uses a depth of 1
24+
# this fetches all history so that we can read each commit
25+
fetch-depth: 0
3826

39-
- name: Set up Python
40-
uses: actions/setup-python@v5
41-
with:
42-
python-version: '3.x'
27+
- name: Set up Python
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: '3.x'
4331

44-
- name: Install dependencies
45-
run: |
46-
python -m pip install --upgrade pip
47-
pip install setuptools wheel twine
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
pip install setuptools wheel twine
4836
49-
- name: Build artifact
50-
run: |
51-
make dist
37+
- name: Build artifact
38+
run: |
39+
make dist
5240
53-
- name: Release
54-
uses: softprops/action-gh-release@v2
55-
if: github.ref_type == 'tag'
56-
with:
57-
files: ./dist/nx_neptune-*.whl
41+
- name: Generate Changelog
42+
run: .github/release_message.sh > release_message.md
5843

59-
# - name: Upload artifact to run
60-
# uses: actions/upload-artifact@v4
61-
# with:
62-
# name: nx_neptune_project_binary
63-
# path: ./dist/nx_neptune-*.whl
44+
- name: Release
45+
uses: softprops/action-gh-release@v2
46+
with:
47+
body_path: release_message.md
48+
files: ./dist/nx_neptune-*.whl
49+
50+
# deploy:
51+
# needs: release
52+
# runs-on: ubuntu-latest
53+
# steps:
54+
# - uses: actions/checkout@v4
6455
#
56+
# - name: Set up Python
57+
# uses: actions/setup-python@v5
58+
# with:
59+
# python-version: '3.x'
6560

6661
# - name: Build and publish
6762
# env:

0 commit comments

Comments
 (0)