2023-05-26 17:07:03 +08:00
|
|
|
name: Build every docs on push
|
|
|
|
run-name: ${{ github.actor }} is build AcoSail docs 🚀
|
2023-05-26 17:20:15 +08:00
|
|
|
on:
|
|
|
|
- push
|
2023-05-26 17:07:03 +08:00
|
|
|
jobs:
|
|
|
|
Explore-Gitea-Actions-docker:
|
2023-05-26 17:15:30 +08:00
|
|
|
runs-on: [AcoSail-ARM64]
|
2023-05-26 17:07:03 +08:00
|
|
|
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:
|
2023-05-26 17:25:46 +08:00
|
|
|
name: dist-with-everything.tar
|
2023-05-26 17:07:03 +08:00
|
|
|
path: |
|
|
|
|
dist.tar
|
|
|
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|