diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml index ae614bb0c..6d6ab9a1a 100644 --- a/.github/workflows/deploy_dev.yml +++ b/.github/workflows/deploy_dev.yml @@ -20,10 +20,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python-version }} + python-version: 3.11 - uses: pdm-project/setup-pdm@v3 name: Setup PDM with: @@ -44,10 +44,10 @@ jobs: run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - - name: Depoly documentation + - name: Deploy documentation env: GH_TOKEN: ${{ secrets.GH_TOKEN }} GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }} run: | git fetch origin gh-pages --depth=1 - pdm run mike deploy --rebase --push -F ${GITHUB_WORKSPACE}/mkdocs.yml dev + pdm run mike deploy -p dev diff --git a/.github/workflows/deploy_latest.yml b/.github/workflows/deploy_latest.yml index 8ef6f1990..5bf83e59e 100644 --- a/.github/workflows/deploy_latest.yml +++ b/.github/workflows/deploy_latest.yml @@ -17,7 +17,7 @@ jobs: name: Deploy release documentation runs-on: ubuntu-latest steps: - - name: Wait for Dev documentation to deploy + - name: Wait for dev documentation to deploy uses: lewagon/wait-on-check-action@v1.3.1 with: ref: main @@ -55,11 +55,10 @@ jobs: run: | export RELEASE_TAG_VERSION=${{ github.event.release.tag_name }} echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION::3}" >> $GITHUB_ENV - - name: Depoly documentation + - name: Deploy documentation env: GH_TOKEN: ${{ secrets.GH_TOKEN }} GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }} run: | git fetch origin gh-pages --depth=1 - pdm run mike deploy --rebase --push -F ${GITHUB_WORKSPACE}/mkdocs.yml --update-aliases latest ${RELEASE_TAG_VERSION} - pdm run mike set-default --rebase --push -F ${GITHUB_WORKSPACE}/mkdocs.yml latest + pdm run mike deploy -up ${RELEASE_TAG_VERSION} latest diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index a7e44dd1c..d5a3383cf 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -16,9 +16,16 @@ env: jobs: documentation: - name: Build documentation + name: Deploy preview documentation runs-on: ubuntu-latest steps: + - name: Wait for dev documentation to deploy + uses: lewagon/wait-on-check-action@v1.3.1 + with: + ref: main + check-name: 'Deploy dev documentation' + repo-token: ${{ secrets.GITHUB_TOKEN }} + wait-interval: 10 - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 diff --git a/pyproject.toml b/pyproject.toml index 170543550..458be4c10 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "bloqade" -version = "0.7.1" +version = "0.7.2" description = "Neutral atom software development kit" authors = [ {name = "QuEra Computing Inc.", email = "info@quera.com"},