Skip to content

Commit f24ea94

Browse files
committed
agora vai
1 parent eae9332 commit f24ea94

1 file changed

Lines changed: 14 additions & 32 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,25 @@
1-
name: Deploy to GitHub Pages
1+
name: Build
2+
23
on:
34
push:
45
branches: ["main"]
5-
workflow_dispatch:
6+
67
jobs:
7-
deploy:
8+
build:
89
runs-on: ubuntu-latest
9-
permissions:
10-
contents: "read"
11-
pages: "write"
12-
id-token: "write"
13-
environment:
14-
name: github-pages
15-
url: ${{ steps.deployment.outputs.page_url }}
1610
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v4
19-
20-
- name: Setup Python
21-
uses: actions/setup-python@v5
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
15+
- uses: actions/setup-python@v5
2216
with:
2317
python-version: "3.12"
24-
18+
2519
- name: Install dependencies
2620
env:
2721
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
28-
run: |
29-
python -m pip install --upgrade pip
30-
pip install -r requirements.txt
31-
32-
- name: Build site
33-
run: |
34-
pelican content -o output -s publishconf.py
35-
36-
- name: Upload artifact
37-
uses: actions/upload-pages-artifact@v3
38-
with:
39-
path: output
40-
41-
- name: Deploy to GitHub Pages
42-
id: deployment
43-
uses: actions/deploy-pages@v4
22+
run: pip install -r requirements.txt
23+
24+
- name: Build and deploy
25+
run: make github

0 commit comments

Comments
 (0)