Skip to content

Commit

Permalink
Try to fix the environment variables... 3rd
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Apr 8, 2024
1 parent 8c88678 commit 9d119c2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ jobs:
steps:
- name: Create variables
run: |
[ "${{ matrix.extension }}" = "websocket" ] && echo "PACKAGE=jupyterlab-ws-chat" || echo "PACKAGE=jupyterlab-${{ matrix.extension }}-chat" >> $GITHUB_ENV
[ "${{ matrix.extension }}" = "websocket" ] && echo "PACKAGE=jupyterlab_ws_chat" || echo "PACKAGE=jupyterlab_${{ matrix.extension }}_chat" >> $GITHUB_ENV
[ "${{ matrix.extension }}" = "websocket" ] && echo "DIRECTORY=packages/jupyterlab-ws-chat" || echo "DIRECTORY=packages/jupyterlab-${{ matrix.extension }}-chat" >> $GITHUB_ENV
echo $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3

Expand All @@ -67,19 +68,19 @@ jobs:
jlpm install
jlpm build:${{ matrix.extension }}
- name: Package ${{ env.PACKAGE }}
working-directory: ${{ env.DIRECTORY }}
- name: Package $PACKAGE
working-directory: $DIRECTORY
run: |
set -eux
pip install build
python -m build
pip uninstall -y "${{ env.PACKAGE }}" jupyterlab
pip uninstall -y "$PACKAGE" jupyterlab
- name: Upload ${{ env.PACKAGE }} package
- name: Upload $PACKAGE package
uses: actions/upload-artifact@v3
with:
name: package-artifacts
path: ${{ env.DIRECTORY }}/dist/${{ env.PACKAGE }}*
path: $DIRECTORY/dist/$PACKAGE*
if-no-files-found: error

check_links:
Expand Down

0 comments on commit 9d119c2

Please sign in to comment.