Skip to content

Commit 3ff9c8e

Browse files
committed
publish to pages
1 parent d26d197 commit 3ff9c8e

1 file changed

Lines changed: 16 additions & 23 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,7 @@ on:
99
- '**'
1010

1111
jobs:
12-
test:
13-
if: github.ref != 'refs/heads/main'
14-
runs-on: ubuntu-latest
15-
container:
16-
image: python:3.8-buster
17-
steps:
18-
- name: Checkout code
19-
uses: actions/checkout@v4
20-
21-
- name: Install dependencies
22-
run: pip install -r requirements.txt
23-
24-
- name: Build MkDocs site for testing
25-
run: mkdocs build --strict --verbose --site-dir test
26-
27-
- name: Upload test artifacts
28-
uses: actions/upload-artifact@v4
29-
with:
30-
name: test
31-
path: test
32-
33-
deploy:
34-
if: github.ref == 'refs/heads/main'
12+
build:
3513
runs-on: ubuntu-latest
3614
container:
3715
image: python:3.8-buster
@@ -50,3 +28,18 @@ jobs:
5028
with:
5129
name: public
5230
path: public
31+
32+
deploy:
33+
# if: github.ref == 'refs/heads/main'
34+
runs-on: ubuntu-latest
35+
needs: build
36+
permissions:
37+
pages: write
38+
id-token: write
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
steps:
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)