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/08/23 21:04:02 UTC

[age-website] branch documentation-staging created (now 213ecaf)

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

joshinnis pushed a change to branch documentation-staging
in repository https://gitbox.apache.org/repos/asf/age-website.git


      at 213ecaf  Create build-documentation-staging.yml

This branch includes the following new commits:

     new 213ecaf  Create build-documentation-staging.yml

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[age-website] 01/01: Create build-documentation-staging.yml

Posted by jo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 213ecaf737ba94ec4be79fc917475c8ee039f6f7
Author: Josh Innis <Jo...@gmail.com>
AuthorDate: Tue Aug 23 14:03:59 2022 -0700

    Create build-documentation-staging.yml
---
 .github/workflows/build-documentation-staging.yml | 46 +++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/.github/workflows/build-documentation-staging.yml b/.github/workflows/build-documentation-staging.yml
new file mode 100644
index 0000000..a2bd23d
--- /dev/null
+++ b/.github/workflows/build-documentation-staging.yml
@@ -0,0 +1,46 @@
+name: Build documentation
+
+on: push
+
+jobs:
+  deploy:
+    runs-on: ubuntu-18.04
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
+
+      - name: Setup Python
+        uses: actions/setup-python@v2
+        with:
+          python-version: '3.8'
+
+      - 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-multiversion docs build/html
+
+      - run: cp ./index.html ./build/html
+
+      - name: Deploy
+        uses: peaceiris/actions-gh-pages@v3
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_branch: asf-staging
+          publish_dir: ./build/html
+          destination_dir: docs