diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfa6cf6d..61dbacc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,9 +14,15 @@ jobs: with: cache: true python-version: ${{ matrix.python-version }} + - id: pages + name: Setup pages + uses: actions/configure-pages@v4 - run: env | sort - run: make dev - - run: make lint test doc build + - run: make lint + - run: make test + - run: CI_PAGES_URL=${{ steps.pages.outputs.base_url }} make doc + - run: make build strategy: matrix: python-version: diff --git a/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/ci.yml.jinja b/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/ci.yml.jinja index 1ad73d01..92f57ffb 100644 --- a/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/ci.yml.jinja +++ b/template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/ci.yml.jinja @@ -15,9 +15,15 @@ jobs: with: cache: true python-version: {{ '${{ matrix.python-version }}' }} + - id: pages + name: Setup pages + uses: actions/configure-pages@v4 - run: env | sort - run: make dev - - run: make lint test doc build + - run: make lint + - run: make test + - run: CI_PAGES_URL={{ '${{ steps.pages.outputs.base_url }}' }} make doc + - run: make build strategy: matrix: python-version: