forked from CollectionBuilder/collectionbuilder-csv
-
Notifications
You must be signed in to change notification settings - Fork 3
89 lines (82 loc) · 2.2 KB
/
jekyll.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Deploy Jekyll site with Data Processing
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
env:
OMEKA_API_URL: ${{ secrets.OMEKA_API_URL }}
KEY_IDENTITY: ${{ secrets.KEY_IDENTITY }}
KEY_CREDENTIAL: ${{ secrets.KEY_CREDENTIAL }}
ITEM_SET_ID: ${{ secrets.ITEM_SET_ID }}
jobs:
data-processing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: uv run .github/workflows/process_data.py
- name: Upload sgb-metadata.csv
uses: actions/upload-artifact@v4
with:
name: sgb-metadata
path: _data/sgb-metadata.csv
- name: Upload objects folder
uses: actions/upload-artifact@v4
with:
name: objects
path: objects
build:
needs: data-processing
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download sgb-metadata.csv
uses: actions/download-artifact@v4
with:
name: sgb-metadata
path: _data
- name: Download objects folder
uses: actions/download-artifact@v4
with:
name: objects
path: objects
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
bundler-cache: true
cache-version: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Build with Jekyll
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}