27 lines
1.0 KiB
YAML
27 lines
1.0 KiB
YAML
name: Build every docs on push
|
|
run-name: ${{ github.actor }} is build AcoSail docs 🚀
|
|
on:
|
|
- push
|
|
jobs:
|
|
Explore-Gitea-Actions-docker:
|
|
runs-on: [AcoSail-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.tar
|
|
path: |
|
|
dist.tar
|
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|