Merge pull request #37 from kyuchia/update-publications-2025 #20
This file contains hidden or 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
| name: Python package | |
| on: | |
| push: | |
| paths: | |
| - 'zotero_export/SIMSSA_media.html' | |
| - 'zotero_export/SIMSSA_presentations.html' | |
| - 'zotero_export/SIMSSA_publications.html' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout repo content | |
| uses: actions/checkout@v2 # checkout the repository content to github runner. | |
| - name: setup python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.9 #install the python needed | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: execute py script # run the run.py to get the latest data | |
| run: | | |
| python github_html_parser.py | |
| - name: add credentials | |
| run: git config --global user.email "esav678@gmail.com"; git config --global user.name "evansavage" | |
| - name: check for changes | |
| run: git status | |
| - name: stage changed files | |
| run: git add . | |
| - name: commit changed files | |
| run: git commit -m "Auto updating citations" | |
| - name: fetch from master | |
| run: git fetch origin master | |
| - name: push code to master | |
| run: git push origin HEAD:master |