-
Notifications
You must be signed in to change notification settings - Fork 32
53 lines (42 loc) · 1.38 KB
/
deploy.yml
File metadata and controls
53 lines (42 loc) · 1.38 KB
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
name: Deploy GitHub Pages
on:
workflow_dispatch:
schedule:
- cron: "0 14 * * *" # Every day at 10 AM New York time
push:
branches: ["main"] # Trigger on non-action pushes to main branch
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest # Use a GitHub-hosted runner
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4.5' # Specify the required Ruby version
bundler-cache: true # Cache dependencies
- name: Install dependencies
run: bundle install
- name: Build site
run: bundle exec jekyll build # Modify if using a different static site generator
- name: Deploy to GitHub Pages
uses: actions/upload-pages-artifact@v3 # Upload generated site for deployment
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Deploy site
uses: actions/deploy-pages@v4