Deploy #211
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: | |
schedule: | |
- cron: '0 5 * * *' | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
- uses: ramsey/composer-install@v2 | |
with: | |
composer-options: "--prefer-dist --optimize-autoloader --ignore-platform-reqs" | |
- uses: bahmutov/npm-install@v1 | |
- name: Laravel Mix | |
run: npm run prod | |
- name: Run Jigsaw | |
run: ./vendor/bin/jigsaw build production | |
env: | |
DOCSEARCH_INDEX: ${{ secrets.DOCSEARCH_INDEX }} | |
DOCSEARCH_KEY: ${{ secrets.DOCSEARCH_KEY }} | |
- name: Publish | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
accountId: ${{ secrets.CF_ACCOUNT_ID }} | |
command: pages publish --project-name=gtld-fyi ./build_production |