Skip to content

Commit 25364d9

Browse files
Adiciona action para publicar o site no pages
1 parent 62471ee commit 25364d9

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/github-pages.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- pelican
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: pages
13+
cancel-in-progress: true
14+
15+
jobs:
16+
build:
17+
name: Build
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout do repositório
21+
uses: actions/checkout@v3
22+
with:
23+
submodules: recursive
24+
25+
- name: Configura python
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: "2.7"
29+
cache: pip
30+
31+
- name: Instala dependências
32+
run: pip install -r requirements.txt
33+
34+
- name: Build do site
35+
run: make publish
36+
37+
- name: Upload do site
38+
uses: actions/upload-pages-artifact@v1
39+
with:
40+
path: output/
41+
42+
deploy:
43+
name: Deploy
44+
needs: build
45+
permissions:
46+
pages: write
47+
id-token: write
48+
runs-on: ubuntu-latest
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
steps:
53+
- name: Deploy no GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)