Skip to content

Commit 6578d8d

Browse files
authored
ci: dynamic CI_PAGES_URL env for ci workflow on GitHub (#311)
1 parent 7716738 commit 6578d8d

File tree

2 files changed

+14
-2
lines changed
  • .github/workflows
  • template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows

2 files changed

+14
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ jobs:
1414
with:
1515
cache: true
1616
python-version: ${{ matrix.python-version }}
17+
- id: pages
18+
name: Setup pages
19+
uses: actions/configure-pages@v4
1720
- run: env | sort
1821
- run: make dev
19-
- run: make lint test doc build
22+
- run: make lint
23+
- run: make test
24+
- run: CI_PAGES_URL=${{ steps.pages.outputs.base_url }} make doc
25+
- run: make build
2026
strategy:
2127
matrix:
2228
python-version:

template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/ci.yml.jinja

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ jobs:
1515
with:
1616
cache: true
1717
python-version: {{ '${{ matrix.python-version }}' }}
18+
- id: pages
19+
name: Setup pages
20+
uses: actions/configure-pages@v4
1821
- run: env | sort
1922
- run: make dev
20-
- run: make lint test doc build
23+
- run: make lint
24+
- run: make test
25+
- run: CI_PAGES_URL={{ '${{ steps.pages.outputs.base_url }}' }} make doc
26+
- run: make build
2127
strategy:
2228
matrix:
2329
python-version:

0 commit comments

Comments
 (0)