Generate examples #181
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: Generate examples | |
on: | |
schedule: | |
- cron: '25 15 * * *' | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
tags: | |
- v* | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: false | |
jobs: | |
generate: | |
name: Generate | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
- name: Install dependencies | |
run: | | |
cd examples-generator | |
composer install | |
cd .. | |
- name: Generate images | |
env: | |
AI_HORDE_API_KEY: ${{ secrets.AI_HORDE_API_KEY }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
R2_BUCKET_NAME: ${{ secrets.R2_BUCKET_NAME }} | |
R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }} | |
run: php examples-generator/generate-examples.php |