You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by hb...@apache.org on 2022/08/30 06:33:39 UTC

[age-website] branch master updated: Create build-documentation-staging.yml (#62)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 05eba64  Create build-documentation-staging.yml (#62)
05eba64 is described below

commit 05eba64ebc09806c312c8c9773ff00eb69275b82
Author: Josh Innis <Jo...@gmail.com>
AuthorDate: Mon Aug 29 23:33:33 2022 -0700

    Create build-documentation-staging.yml (#62)
    
    다들 감사합니다.
    덕분에 프로젝트가 순조롭게 진행되고 있습니다.
---
 .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