utxo-prague/.github/workflows/schedule-pdf.yml

42 řádky
948 B
YAML
Surový Normální zobrazení Historie

2022-05-28 20:05:50 +02:00
name: Generate schedule PDFs
on:
2022-05-28 20:08:35 +02:00
workflow_dispatch:
2022-05-28 20:05:50 +02:00
2022-05-30 15:22:35 +02:00
schedule:
- cron: '*/30 * * * *'
2022-05-28 20:05:50 +02:00
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'
2022-05-30 05:52:49 +02:00
- uses: szenius/set-timezone@v1.0
with:
timezoneLinux: "Europe/Prague"
2022-05-28 20:05:50 +02:00
- name: Install npm modules
run: |
2022-05-28 20:15:21 +02:00
cd utils/schedule-pdf && npm ci
2022-05-28 20:05:50 +02:00
- 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
2022-05-30 05:49:28 +02:00
deploy_key: ${{ secrets.ACTIONS_PUB_DEPLOY_KEY }}
2022-05-28 20:05:50 +02:00
publish_dir: ./dist/22/pdf
destination_dir: ./22/pdf