Skip to content

Commit

Permalink
build: add GitHub Actions workflow for updating README files
Browse files Browse the repository at this point in the history
  • Loading branch information
leoli0605 committed Feb 21, 2024
1 parent 2c45932 commit d9ca437
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: update README files

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Required Packages
run: |
sudo apt-get update && sudo apt-get install -y \
make \
jq \
unzip \
pandoc \
texlive-latex-base \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-latex-extra && \
make docs-install
- name: Generate README
run: make docs

- name: Commit and Push Changes
run: |
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git config --local user.name "${{ github.actor }}"
git add README.md README.pdf
git diff --cached --quiet || git commit -m "Update README files"
git push origin main

0 comments on commit d9ca437

Please sign in to comment.