-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (42 loc) · 1.18 KB
/
build-website.yaml
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
name: Build beaker-project.org
on:
pull_request:
push:
workflow_dispatch:
jobs:
build-website:
runs-on: ubuntu-latest
container: centos:7
steps:
- name: Setup environment
run: |
yum install -y epel-release python3 https://repo.ius.io/ius-release-el7.rpm
yum install -y make nodejs git236-core python-genshi python-dateutil python-dulwich
- name: Checkout source code
uses: actions/checkout@v3
with:
path: website
- name: Checkout beaker repository
uses: actions/checkout@v3
with:
path: beaker
repository: beaker-project/beaker
ref: 'master'
fetch-depth: 0
fetch-tags: true
- name: Cache Beaker's release tarballs
uses: actions/cache@v3
with:
path: website/releases
# XXX: This is not unique - cache has to be manually removed
key: cache
- name: Fetch Beaker's release tarballs
run: |
pushd website
make clean
make
- name: Archive website
uses: actions/upload-artifact@v3
with:
name: website
path: website