Generate Calendars #53
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 Calendars | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 15 * * 0' # Monday 00:00 (+09:00) | |
jobs: | |
cron: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Generate | |
env: | |
API_KEY: ${{ secrets.API_KEY }} | |
run: deno task generate | |
- name: Commit | |
uses: EndBug/add-and-commit@v9 | |
with: | |
add: './public' | |
author_name: Dist.be Bot | |
author_email: [email protected] | |
message: 'sync: update dates' | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public |