-
Notifications
You must be signed in to change notification settings - Fork 348
60 lines (48 loc) · 1.27 KB
/
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
name: Deploy
on:
workflow_dispatch:
push:
branches: [master]
schedule:
- cron: "0 0 * * *"
concurrency:
group: pages
cancel-in-progress: true
permissions:
contents: read
pages: write
id-token: write
jobs:
website:
runs-on: ubuntu-latest
if: github.repository_owner == 'iris-hep'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- uses: actions/checkout@v4
- name: Prepare to build site
uses: ./.github/actions/prepare-build-site
- name: Check RuboCop
run: bundle exec rake rubocop
- name: Build the site
run: bundle exec rake build
env:
JEKYLL_ENV: production
INDICO_TOKEN: ${{ secrets.INDICO_TOKEN }}
- name: Check for issues
run: bundle exec rake checkonly || true
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: _site
- name: Deploy to GitHub Pages
if: >
success()
&& github.ref == 'refs/heads/master'
&& github.repository == 'iris-hep/iris-hep.github.io'
id: deployment
uses: actions/deploy-pages@v4