Skip to content

Commit 6f19565

Browse files
authored
create deploy cron
1 parent 7c9c509 commit 6f19565

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
schedule:
7+
- cron: "0 4 * * *"
8+
workflow_dispatch: # allows running this workflow manually from the Actions tab
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency: # only one concurrent deployment
16+
group: "pages"
17+
cancel-in-progress: false
18+
19+
jobs:
20+
deploy:
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Install Poetry
30+
run: pipx install poetry
31+
32+
- name: Set up Python
33+
uses: actions/setup-python@v4
34+
with:
35+
python-version: 3.11
36+
cache: poetry
37+
38+
- name: Install dependencies
39+
run: poetry install
40+
41+
- name: Build
42+
run: poetry run mkdocs build
43+
44+
- name: Setup Pages
45+
uses: actions/configure-pages@v5
46+
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v3
49+
with:
50+
path: './site'
51+
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)