Skip to content

Generate and Deploy #221

Generate and Deploy

Generate and Deploy #221

Workflow file for this run

name: Generate and Deploy
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- run: pnpm install
- run: pnpm run generate
- uses: EndBug/add-and-commit@v9
with:
add: 'providers'
- uses: actions/upload-pages-artifact@v1
with:
path: providers/
deploy:
runs-on: ubuntu-latest
needs: generate
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v1