File tree 4 files changed +169
-191
lines changed
4 files changed +169
-191
lines changed Original file line number Diff line number Diff line change 4
4
build-and-deploy :
5
5
runs-on : ubuntu-latest
6
6
steps :
7
- - uses : actions/checkout@v2
8
- - name : setup python version
9
- uses : actions/setup-python@v3
10
- with :
11
- python-version : 3.9
12
- - name : Install dependencies
13
- run : |
14
- pip install pipenv
15
- pipenv sync
16
- pipenv run lektor build -f webpack
17
- - name : Deploy to production
18
- if : github.ref == 'refs/heads/main'
19
- run : |
20
- pipenv run lektor deploy ghpages --username ${{ secrets.LEKTOR_DEPLOY_USERNAME }} --password ${{ secrets.LEKTOR_DEPLOY_PASSWORD }}
7
+
8
+ # https://github.com/actions/setup-python
9
+ - name : setup python version
10
+ uses : actions/setup-python@v5
11
+ with :
12
+ python-version : 3.11
13
+
14
+ - name : Install pipenv
15
+ run : |
16
+ pip install --upgrade pip
17
+ pip install pipenv
18
+
19
+ # https://github.com/actions/checkout
20
+ - uses : actions/checkout@v4
21
+
22
+ - name : Install dependencies
23
+ run : pipenv sync
24
+
25
+ - name : Build static site and use webpack
26
+ run : pipenv run lektor build -f webpack
27
+
28
+ - name : Deploy to production
29
+ if : github.ref == 'refs/heads/main'
30
+ run : |
31
+ pipenv run lektor deploy ghpages --username ${{ secrets.LEKTOR_DEPLOY_USERNAME }} --password ${{ secrets.LEKTOR_DEPLOY_PASSWORD }}
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ url = "https://pypi.org/simple"
4
4
verify_ssl = true
5
5
6
6
[packages ]
7
- black = " * "
7
+ black = " >=24.3.0 "
8
8
flake8 = " *"
9
9
isort = " *"
10
- lektor = " * "
10
+ lektor = " >=3.3.11 "
11
11
12
12
[requires ]
13
- python_version = " 3.9 "
13
+ python_version = " 3.11 "
You can’t perform that action at this time.
0 commit comments