Deploy #138
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: Deploy | |
on: | |
push: | |
branches: [ main ] | |
schedule: | |
- cron: '0 16 * * FRI' | |
jobs: | |
all: | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: ["3.11"] | |
poetry-version: ["1.4"] | |
os: ["ubuntu-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run Poetry Image | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install Dependencies | |
run: poetry install | |
- name: Generate README | |
run: poetry run python readme.py | |
- name: Commit wiki | |
continue-on-error: true | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Regenerated README" | |
git push |