You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by jo...@apache.org on 2022/10/26 04:26:28 UTC

[age-website] branch developer-manual updated: Add deployment to Staging Again

This is an automated email from the ASF dual-hosted git repository.

joshinnis pushed a commit to branch developer-manual
in repository https://gitbox.apache.org/repos/asf/age-website.git


The following commit(s) were added to refs/heads/developer-manual by this push:
     new c76e717  Add deployment to Staging Again
c76e717 is described below

commit c76e717fd37fce856a29d2cad4cba93315b8399f
Author: Josh Innis <Jo...@gmail.com>
AuthorDate: Wed Oct 26 13:26:08 2022 +0900

    Add deployment to Staging Again
---
 .github/workflows/build-documentation.yml | 46 +++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml
new file mode 100644
index 0000000..8a61dd9
--- /dev/null
+++ b/.github/workflows/build-documentation.yml
@@ -0,0 +1,46 @@
+name: Build documentation
+
+on: push
+
+jobs:
+  deploy:
+    runs-on: ubuntu-20.04
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
+
+      - name: Setup Python
+        uses: actions/setup-python@v2
+        with:
+          python-version: '3.10'
+
+      - name: Upgrade pip
+        run: |
+          # install pip=>20.1 to use "pip cache dir"
+          python3 -m pip install --upgrade pip
+      - name: Get pip cache dir
+        id: pip-cache
+        run: echo "::set-output name=dir::$(pip cache dir)"
+
+      - name: Cache dependencies
+        uses: actions/cache@v2
+        with:
+          path: ${{ steps.pip-cache.outputs.dir }}
+          key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
+          restore-keys: |
+            ${{ runner.os }}-pip-
+      - name: Install dependencies
+        run: python3 -m pip install -r ./requirements.txt
+
+      - run: sphinx-build docs build/html/current
+
+      - run: cp ./index.html ./build/html/current
+
+      - name: Deploy-asf-staging
+        uses: peaceiris/actions-gh-pages@v3
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_branch: asf-staging
+          publish_dir: ./build/html/current
+          destination_dir: age-dev-manual