File tree Expand file tree Collapse file tree 2 files changed +28
-17
lines changed Expand file tree Collapse file tree 2 files changed +28
-17
lines changed Original file line number Diff line number Diff line change 44 build-and-deploy :
55 runs-on : ubuntu-latest
66 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"
44verify_ssl = true
55
66[packages ]
7- black = " * "
7+ black = " >=24.3.0 "
88flake8 = " *"
99isort = " *"
10- lektor = " * "
10+ lektor = " >=3.3.11 "
1111
1212[requires ]
13- python_version = " 3.9 "
13+ python_version = " 3.11 "
You can’t perform that action at this time.
0 commit comments