|
12 | 12 | workflow_dispatch: |
13 | 13 |
|
14 | 14 | 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 |
35 | 17 | runs-on: ubuntu-latest |
| 18 | + permissions: |
| 19 | + contents: write |
36 | 20 | 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 |
38 | 26 |
|
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' |
43 | 31 |
|
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 |
48 | 36 |
|
49 | | - - name: Build artifact |
50 | | - run: | |
51 | | - make dist |
| 37 | + - name: Build artifact |
| 38 | + run: | |
| 39 | + make dist |
52 | 40 |
|
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 |
58 | 43 |
|
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 |
64 | 55 | # |
| 56 | +# - name: Set up Python |
| 57 | +# uses: actions/setup-python@v5 |
| 58 | +# with: |
| 59 | +# python-version: '3.x' |
65 | 60 |
|
66 | 61 | # - name: Build and publish |
67 | 62 | # env: |
|
0 commit comments