mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-23 04:04:12 +00:00
99bb55472c
## Issue Addressed This resolves errors related to the glibc version of the downloaded mdbook binaries. Currently the mdbook job is failing on `unstable`: https://github.com/sigp/lighthouse/runs/5785245715?check_suite_focus=true
31 lines
759 B
YAML
31 lines
759 B
YAML
name: mdbook
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- unstable
|
|
|
|
jobs:
|
|
build-and-upload-to-s3:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Setup mdBook
|
|
uses: peaceiris/actions-mdbook@v1
|
|
with:
|
|
mdbook-version: 'latest'
|
|
|
|
- run: mdbook build
|
|
working-directory: book
|
|
|
|
- uses: jakejarvis/s3-sync-action@be0c4ab89158cac4278689ebedd8407dd5f35a83
|
|
with:
|
|
args: --follow-symlinks --delete
|
|
env:
|
|
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BOOK_BUCKET }}
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
AWS_REGION: 'ap-southeast-2'
|
|
SOURCE_DIR: 'book/book'
|