-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (30 loc) · 969 Bytes
/
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
# Workflow for deploying the website
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
deploy-website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Setup Ruby
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # renovate
with:
ruby-version: 3.2
bundler-cache: true
- name: Setup Java
uses: actions/setup-java@91d3aa4956ec4a53e477c4907347b5e3481be8c9 # v2.5.1
with:
java-version: 16
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 }}