mirror of
https://github.com/koodiklinikka/palkkakysely.git
synced 2026-02-03 08:48:01 +00:00
41 lines
998 B
YAML
41 lines
998 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
schedule:
|
|
# Update automatically on weekdays during work hours
|
|
- cron: '0 10,13,16 * * 1-5'
|
|
# ... and every night
|
|
- cron: '0 0 * * *'
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2.3.1
|
|
- name: Set up Python 3.9
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.9
|
|
- name: Cache pip
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-
|
|
${{ runner.os }}-
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip wheel
|
|
python -m pip install -r requirements.txt
|
|
- name: Build
|
|
run: make -j3
|
|
- name: Deploy
|
|
uses: JamesIves/github-pages-deploy-action@4.0.0
|
|
with:
|
|
branch: gh-pages
|
|
folder: out
|