Add CI/CD file

This commit is contained in:
herb_cheng 2023-05-26 17:07:03 +08:00
parent 154e6d4e89
commit 9b977b1e34

View File

@ -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 }}."