Merge branch 'master' of https://github.com/dune/abcdune into github-… #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push] | |
permissions: | |
id-token: write | |
pages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print job info | |
run: echo "This job was automatically triggered by a ${{ github.event_name }} event. It is now running on a ${{ runner.os }} server hosted by GitHub! The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Install pandoc | |
run: sudo apt-get install -y pandoc | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9.13' | |
- name: Check out the commit that triggered this job | |
uses: actions/checkout@v4 | |
- name: Regenerate the HTML | |
run: | | |
python -m venv venv/ | |
source venv/bin/activate | |
pip install pypandoc | |
python abcdune.py -i glossary.tex -d defs.tex -o docs/index.html | |
- name: Upload static files as artifact | |
id: deployment | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: docs/ | |
# 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 |