Skip to content

Commit 255ffb7

Browse files
committed
Allow regular deploys of the website
This is now critical since there is some date comparison with the "current" time. "Current" time means build time, so the website must be built and deployed on a regular basis for this new logic to be useful.
1 parent 1388165 commit 255ffb7

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

Diff for: .github/workflows/deploy.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: ['gh-pages']
6+
workflow_dispatch:
7+
schedule:
8+
- cron: '0 */2 * * *'
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v3
25+
- name: Setup Pages
26+
uses: actions/configure-pages@v2
27+
- name: Build with Jekyll
28+
uses: actions/jekyll-build-pages@v1
29+
with:
30+
source: ./
31+
destination: ./_site
32+
- name: Upload artifact
33+
uses: actions/upload-pages-artifact@v1
34+
35+
deploy:
36+
environment:
37+
name: github-pages
38+
url: ${{ steps.deployment.outputs.page_url }}
39+
runs-on: ubuntu-latest
40+
needs: build
41+
steps:
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)