42 řádky
948 B
YAML
42 řádky
948 B
YAML
name: Generate schedule PDFs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
- cron: '*/30 * * * *'
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '17'
|
|
|
|
- uses: szenius/set-timezone@v1.0
|
|
with:
|
|
timezoneLinux: "Europe/Prague"
|
|
|
|
- name: Install npm modules
|
|
run: |
|
|
cd utils/schedule-pdf && npm ci
|
|
|
|
- name: Build sources
|
|
run: make schedule-pdf
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
if: ${{ github.ref == 'refs/heads/master' }}
|
|
with:
|
|
external_repository: utxo-foundation/pub.utxo.cz
|
|
deploy_key: ${{ secrets.ACTIONS_PUB_DEPLOY_KEY }}
|
|
publish_dir: ./dist/22/pdf
|
|
destination_dir: ./22/pdf
|