Skip to content

Commit

Permalink
temp: deploy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobuikhuizen committed Jun 4, 2024
1 parent 1a10330 commit 170e39e
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,45 +137,45 @@ jobs:
./upload_docs
release:
if: startsWith(github.event.ref, 'refs/tags/v')
# if: startsWith(github.event.ref, 'refs/tags/v')
needs: [test, ui-test, build-docs]
runs-on: ubuntu-20.04
steps:
- uses: actions/download-artifact@v4
with:
name: ipyaggrid-dist-${{ github.run_number }}

- name: Install node
uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine wheel jupyter-packaging jupyterlab
- name: Publish the Python package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload --skip-existing dist/*

- name: Publish the NPM package
run: |
cd js
echo $PRE_RELEASE
if [[ $PRE_RELEASE == "true" ]]; then export TAG="next"; else export TAG="latest"; fi
npm publish --tag ${TAG} --access public *.tgz
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
PRE_RELEASE: ${{ github.event.release.prerelease }}
# - name: Install node
# uses: actions/setup-node@v4
# with:
# node-version: "20.x"
# registry-url: "https://registry.npmjs.org"
#
# - name: Install Python
# uses: actions/setup-python@v5
# with:
# python-version: 3.8
#
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install twine wheel jupyter-packaging jupyterlab
#
# - name: Publish the Python package
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
# run: twine upload --skip-existing dist/*
#
# - name: Publish the NPM package
# run: |
# cd js
# echo $PRE_RELEASE
# if [[ $PRE_RELEASE == "true" ]]; then export TAG="next"; else export TAG="latest"; fi
# npm publish --tag ${TAG} --access public *.tgz
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# PRE_RELEASE: ${{ github.event.release.prerelease }}

- uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 170e39e

Please sign in to comment.