Skip to content

Commit

Permalink
make build happen on Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
afrendeiro committed Nov 8, 2024
1 parent 360ac98 commit a92c705
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 2,195 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy Website

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Build static site
run: python build.py
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
5 changes: 2 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import yaml

from jinja2 import Environment, FileSystemLoader
import requests
import bs4


config = yaml.safe_load(Path("config.yaml").open().read())
Expand Down Expand Up @@ -50,9 +52,6 @@ def build_all_pages():


def get_publications():
import requests
import bs4

source = "https://andre-rendeiro.com"
html = requests.get(source).content
soup = bs4.BeautifulSoup(html, "lxml")
Expand Down
157 changes: 0 additions & 157 deletions docs/contact.html

This file was deleted.

Loading

0 comments on commit a92c705

Please sign in to comment.