added PS Poly (close #13) #119
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
name: Publish software list to gh-pages | |
on: | |
push: | |
branches: | |
- main | |
- gh-pages | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
# prerequisites | |
python -m pip install --upgrade pip wheel | |
pip install -r requirements.txt | |
# show installed packages | |
pip freeze | |
- name: Generate software list | |
run: | | |
python afm-list-manager.py export-list -o exported | |
- name: Push to gh-pages branch | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git fetch | |
git config --global user.email "[email protected]" | |
git config --global user.name "gh-pages release bot" | |
git checkout gh-pages | |
cp -r ./exported/* docs/static/ | |
git add docs/static/* | |
git commit -a -m "automated update of software list" || echo "No changes to commit" | |
git push |