From 9b977b1e34410e392f562d5d42145fa46f75ed9c Mon Sep 17 00:00:00 2001 From: herb_cheng Date: Fri, 26 May 2023 17:07:03 +0800 Subject: [PATCH] Add CI/CD file --- .gitea/workflows/build.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/ .gitea/workflows/build.yaml b/ .gitea/workflows/build.yaml new file mode 100644 index 0000000..a329c61 --- /dev/null +++ b/ .gitea/workflows/build.yaml @@ -0,0 +1,25 @@ +name: Build every docs on push +run-name: ${{ github.actor }} is build AcoSail docs 🚀 +on: [push] +jobs: + Explore-Gitea-Actions-docker: + runs-on: [ubuntu-20.04, ARM64] + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - name: Install npm deps + run: | + yarn config set registry https://registry.npm.taobao.org + yarn add -D vitepress + - run: yarn docs:build + - run: tar -cvf dist.tar docs/.vitepress/dist + - name: Archive production artifacts + uses: actions/upload-artifact@v3 + with: + name: dist-with-everything + path: | + dist.tar + - run: echo "🍏 This job's status is ${{ job.status }}."