Skip to content

Commit eae9332

Browse files
committed
fix: ajustando deploy github workflows
1 parent 97d3d75 commit eae9332

1 file changed

Lines changed: 32 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,39 @@ on:
55
workflow_dispatch:
66
jobs:
77
deploy:
8-
uses: "getpelican/pelican/.github/workflows/github_pages.yml@main"
8+
runs-on: ubuntu-latest
99
permissions:
1010
contents: "read"
1111
pages: "write"
1212
id-token: "write"
13-
env:
14-
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
15-
with:
16-
settings: "publishconf.py"
17-
requirements: "-r requirements.txt"
13+
environment:
14+
name: github-pages
15+
url: ${{ steps.deployment.outputs.page_url }}
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.12"
24+
25+
- name: Install dependencies
26+
env:
27+
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

0 commit comments

Comments
 (0)