minor improvements to the docker-mysql + adding debug output to clone… #13
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 PDF | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
generate-pdf: | |
runs-on: ubuntu-latest | |
steps: | |
# To automatically get bug fixes and new Php versions for shivammathur/setup-php, | |
# change this to (see https://github.com/shivammathur/setup-php#bookmark-versioning): | |
# uses: shivammathur/setup-php@v2 | |
- uses: shivammathur/setup-php@2cb9b829437ee246e9b3cac53555a39208ca6d28 | |
with: | |
php-version: '8.1' | |
- uses: actions/checkout@v3 | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: Install Dependencies | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Create Database | |
run: sh scripts/generate_pdf.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: samm.pdf | |
path: export/SAMM.pdf |