Skip to content

.github/workflows/ci.yml #31

.github/workflows/ci.yml

.github/workflows/ci.yml #31

Workflow file for this run

name: Deploy site
on:
pull_request:
push:
branches:
- main
schedule:
- cron: '*/15 * * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
name: "Setup Python"
with:
python-version: '3.12'
- run: pip install requests
- run: python createbib.py
- name: install pandoc
uses: docker://pandoc/core:3.1
with:
args: -C bibfile.bib -t markdown_strict --csl american-physics-society.csl -o _includes/myPubs.md
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4