-
Notifications
You must be signed in to change notification settings - Fork 20
60 lines (50 loc) · 1.28 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: main
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
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: true
- 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@v1
with:
path: _site
- name: Deploy to GitHub Pages
if: >
success()
&& github.ref == 'refs/heads/main'
&& github.repository == 'tac-hep/tac-hep.github.io'
id: deployment
uses: actions/deploy-pages@v2