-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (41 loc) · 1.18 KB
/
preview.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Build Jekyll Page and publish it to GitHub Pages
name: Build Jekyll Page Preview
on:
push:
branches: [ develop ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check out Site Repository 📄
uses: actions/checkout@v3
- name: Check out Model Repository 🗃️
uses: actions/checkout@v3
with:
repository: 'AKSW/leipzig.dataweek.de-model'
path: '.model'
- name: Check out iCal Repository 📅
uses: actions/checkout@v3
with:
repository: 'AKSW/ical.dataweek.de'
ref: 'page-live'
path: '.ical'
- name: Scale Pictures 🖼️
env:
INSTALL_PICTURES_SCALE_PRECONDITIONS: "True"
run: task pictures:scale
- name: Run CI Tasks ⚙️
env:
OAUTH_CLIENT_SECRET: ${{ secrets.OAUTH_CLIENT_SECRET }}
FLAVOUR: staging
run: task ci
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
publish_branch: page-staging # default: gh-pages