From 36c67de3cf0b6163686b4f4fb35b4451bbcabf1f Mon Sep 17 00:00:00 2001 From: Martin Styk Date: Tue, 16 Jan 2024 23:19:19 +0100 Subject: [PATCH] Build Beaker static site in CI Signed-off-by: Martin Styk --- .github/workflows/build-website.yaml | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/build-website.yaml diff --git a/.github/workflows/build-website.yaml b/.github/workflows/build-website.yaml new file mode 100644 index 0000000..401adbf --- /dev/null +++ b/.github/workflows/build-website.yaml @@ -0,0 +1,41 @@ +name: Build beaker-project.org + +on: + push: + pull_request: + schedule: + - cron '0 0 * * *' + workflow_dispatch: + +jobs: + build: + 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: docs + - 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: docs/releases + key: cache + - name: Fetch Beaker's release tarballs + run: | + pushd docs + make clean + make