diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index df4a109841..84c8ac4b74 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -136,6 +136,41 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + build_pypi_index: + needs: [build_wheels, build_sdist] + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v3 + with: + name: artifact + path: dist/packages + - uses: actions/setup-python@v4 + name: Install Python + with: + python-version: '3.11' + - run: pip install dumb-pypi + - run: | + ls dist/packages > package_list.txt + dumb-pypi --output-dir dist --packages-url ../../packages --package-list package_list.txt --title "DeePMD-kit Developed Packages" + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v2 + with: + path: dist + deploy_pypi_index: + needs: build_pypi_index + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + if: github.event_name == 'push' && github.ref == 'refs/heads/devel' && github.repository_owner == 'deepmodeling' + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 + pass: name: Pass testing build wheels needs: [build_wheels, build_sdist] diff --git a/doc/install/easy-install-dev.md b/doc/install/easy-install-dev.md index 855c2f1839..dd943c37af 100644 --- a/doc/install/easy-install-dev.md +++ b/doc/install/easy-install-dev.md @@ -17,7 +17,7 @@ docker pull ghcr.io/deepmodeling/deepmd-kit:devel Below is an one-line shell command to download the [artifact](https://nightly.link/deepmodeling/deepmd-kit/workflows/build_wheel/devel/artifact.zip) containing wheels and install it with `pip`: ```sh -bash -c 'wget -O /tmp/z.$$ https://nightly.link/deepmodeling/deepmd-kit/workflows/build_wheel/devel/artifact.zip && unzip /tmp/z.$$ -d /tmp/dist.$$ && pip install -U --pre deepmd-kit[gpu,cu11,lmp] --find-links /tmp/dist.$$ && rm -r /tmp/z.$$ /tmp/dist.$$' +pip install -U --pre deepmd-kit[gpu,cu11,lmp] --extra-index-url https://deepmodeling.github.io/deepmd-kit/simple ``` `cu11` and `lmp` are optional, which is the same as the stable version.