AcoSailDoc/ .gitea/workflows/build.yml

26 lines
1.0 KiB
YAML
Raw Normal View History

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