-
-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (39 loc) · 1.08 KB
/
nikola.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This is a basic workflow to help you get started with Actions
name: Nikola
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
nikola_build:
runs-on: ubuntu-latest
name: 'Build pages'
steps:
- name: Check out
uses: actions/checkout@v4
- name: Check valid checksums
shell: bash
run: python3 check_checksums.py
- name: Build docs
shell: bash
run: |
sudo apt install virtualenv
make build
- name: Deploy
if: github.ref == 'refs/heads/main'
shell: bash
run: |
# reuse the venv
venv_nikola/bin/python -m pip install ghp-import
venv_nikola/bin/ghp-import -m"Automatic push by ghp-import" -f -p -r origin -b gh-pages --cname=pypy.org public
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: pre-commit/[email protected]