Skip to content

Commit 28384f9

Browse files
author
Prabhakar Kumar
committed
Adds missing inherit directive and re-enables call to unit tests before publish to PyPI.
1 parent 637176b commit 28384f9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020-2023 The MathWorks, Inc.
1+
# Copyright 2020-2024 The MathWorks, Inc.
22

33
# Workflow to release MATLAB Jupyter Integration to PyPi
44
name: Release to PyPI
@@ -11,19 +11,20 @@ jobs:
1111
call-unit-tests:
1212
# Runs unit tests
1313
uses: ./.github/workflows/run-unit-tests.yml
14+
secrets: inherit
1415

1516
build_and_publish_pypi:
1617
# TODO: Add integration-tests as a dependency to
1718
# the release pipeline.
18-
# needs: [call-unit-tests]
19-
# if: success()
19+
needs: [call-unit-tests]
20+
if: success()
2021
runs-on: ubuntu-latest
2122

2223
steps:
2324
- name: Checkout
2425
uses: actions/checkout@v3
2526
with:
26-
ref: ${{github.sha}}
27+
ref: ${{ github.sha }}
2728

2829
- name: Set up Python 3.8
2930
uses: actions/setup-python@v4
@@ -44,4 +45,4 @@ jobs:
4445
user: __token__
4546
verbose: true
4647
password: ${{ secrets.PYPI_TOKEN }}
47-
repository_url: ${{ secrets.PYPI_REPOSITORY_URL }}
48+
repository-url: ${{ secrets.PYPI_REPOSITORY_URL }}

0 commit comments

Comments
 (0)