Adding a GitHub Action to build docs.

This commit is contained in:
Scott 2019-11-17 16:54:37 +00:00 committed by GitHub
parent 5eea7ad67d
commit 8e65e9154c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

36
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: Build
on: [push, pull_request]
jobs:
handle_forks:
name: Forked Repo
runs-on: ubuntu-latest
if: github.repository != 'HandBrake/HandBrake-docs'
steps:
- name: Print Warning
run: |
echo "Builds are disabled for forked repositories."
build:
name: Build on Ubuntu
runs-on: ubuntu-latest
if: github.repository == 'HandBrake/HandBrake-docs'
steps:
- uses: actions/checkout@master
- name: Build Toolchain
run: |
./build-tools
ls -la
- name: Build
run: |
bash ./marsh build --markdown="tools/local/bin/markdown"
cd public
tar cvzf docs.tar.gz docs/
- uses: actions/upload-artifact@master
with:
name: docs
path: public/