-
Notifications
You must be signed in to change notification settings - Fork 8
67 lines (55 loc) · 1.73 KB
/
build-and-deploy.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
name: check, build, deploy hpc-carpentry.org
on:
push:
branches: main
pull_request: []
jobs:
build-website:
if: github.repository_owner == 'hpc-carpentry'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout the Repository
uses: actions/checkout@master
- name: Set up Ruby
uses: actions/setup-ruby@main
with:
ruby-version: '2.7.x'
- name: Install yaml-lint
run: |
gem install yaml-lint
- name: Lint _config.yml with yaml-lint
run: |
yaml-lint _config.yml
- name: Lint pages and blog posts
run: |
yaml-lint -q -n $(find _posts -regex ".*.md\|.*html") &&\
yaml-lint -q -n $(find pages -regex ".*.md\|.*html")
- name: Get GeoJSON for instructor map
run: |
curl --remote-name-all https://feeds.carpentries.org/all_instructors_by_airport.geojson &&\
cp all_instructors_by_airport.geojson files/.
- name: Create repository data files
uses: eessi/github-action-eessi@v1
shell: bash
env:
GITHUB_PAT: ${{ secrets.JEKYLL_PAT }}
run: |
module load R
make data
# - name: Create PDF file of some pages
# uses: docker://pandoc/latex:latest
# with:
# args: >
# --output files/pdf/online-workshop-recommendations.pdf
# --pdf-engine=xelatex
# -V geometry:margin=1in
# pages/online-workshop-recommendations.md
- name: Build and deploy gh-pages branch
uses: helaili/[email protected]
env:
JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}
with:
target_branch: 'gh-pages'