-
-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (30 loc) · 968 Bytes
/
deploy.yml
File metadata and controls
34 lines (30 loc) · 968 Bytes
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
# Workflow for deploying the website
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
deploy-website:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Setup Ruby
uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0
with:
ruby-version: 3.2
bundler-cache: true
- name: Setup Java
uses: actions/setup-java@91d3aa4956ec4a53e477c4907347b5e3481be8c9 # v2.5.1
with:
java-version: 17
distribution: temurin
- name: Install prerequisites
run: |
sudo apt update
sudo apt install xmlstarlet jq curl
gem install jekyll bundler
- name: Update website
run: |
WORKDIR="$HOME"/tmp
mkdir "$WORKDIR"
bash .github/deploy_website.sh "$WORKDIR" "github-actions[bot]" ${{ secrets.GITHUB_TOKEN }}