From f94cb8fdd96fd6d63fa6128d995a49687ebbe750 Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Wed, 28 Aug 2024 23:13:14 +0200 Subject: [PATCH] Add workflow for deploying HTML --- .github/workflows/html.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/html.yml diff --git a/.github/workflows/html.yml b/.github/workflows/html.yml new file mode 100644 index 0000000..6898cc6 --- /dev/null +++ b/.github/workflows/html.yml @@ -0,0 +1,31 @@ +name: Build + +on: + push: + branches: + - main + +jobs: + build-linux: + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + + - name: Install pandoc + run: sudo apt-get install -y pandoc + + - name: Compile HTML with make/pandoc + run: make build + + - name: Configure git user + run: | + git config --global user.name 'OTP Bot' + git config --global user.email 'otp-bot@opentripplanner.org' + + - name: Push latest HTML + run: | + git add *.html + git commit "Add compiled HTML" + git push +