-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (48 loc) · 1.63 KB
/
ci.yaml
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
44
45
46
47
48
49
50
51
name: Build and Deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
- name: Configure Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra latexmk
- name: Install Python Deps
run: |
python3 -m pip install ivpm
- name: Install Dependencies
run: |
python3 -m ivpm update --anonymous-git
- name: Install and build
run: |
make html pdf
touch build/html/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.7
with:
branch: gh-pages # The branch the action should deploy to.
folder: build/html # The folder the action should deploy.
- name: Build Wheel
run: |
python3 -m venv python
./python/bin/python3 -m pip install wheel twine
./python/bin/python3 -m pip install setuptools --upgrade
export BUILD_NUM=$GITHUB_RUN_ID
./python/bin/python3 setup.py bdist_wheel --universal
- name: Publish to PyPi
if: startsWith(github.ref, 'refs/heads/main')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}