Browse Source

Add publish-docs.yml

pull/96/head
gdlcf88 6 years ago
parent
commit
7d3d3b6623
  1. 51
      .github/workflows/publish-docs.yml
  2. 14
      README.md
  3. 1
      README.md
  4. 14
      docs/README.md

51
.github/workflows/publish-docs.yml

@ -0,0 +1,51 @@
name: publish to easyabp.io
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Find and Replace
uses: shitiomatic/str-replace@master
with:
find: \]\((/docs/)
replace: "](/modules/${{ github.event.repository.name }}/"
include: docs/
- name: Pull repo and change files
id: change
run: |
ls
git clone https://github.com/EasyAbp/easyabp.github.io
cd easyabp.github.io
rm -rf docs/modules/${{ github.event.repository.name }}
rm -rf docs/.vuepress/public/modules/${{ github.event.repository.name }}
cp -rf ../docs/ docs/modules/${{ github.event.repository.name }}
cp -rf ../docs/ docs/.vuepress/public/modules/${{ github.event.repository.name }}
git add --all
echo "##[set-output name=diff;]$(git diff --staged)"
- name: Commit files
if: steps.change.outputs.diff
run: |
ls
cd easyabp.github.io
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Update the docs of ${{ github.event.repository.name }}" -a
- name: Push changes
if: steps.change.outputs.diff
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.EASYABP_IO_ACCESS_TOKEN }}
repository: EasyAbp/easyabp.github.io
directory: easyabp.github.io

14
README.md

@ -1,14 +0,0 @@
# EShop
[![NuGet](https://img.shields.io/nuget/v/EasyAbp.EShop.Domain.Shared.svg?style=flat-square)](https://www.nuget.org/packages/EasyAbp.EShop.Domain.Shared)
[![NuGet Download](https://img.shields.io/nuget/dt/EasyAbp.EShop.Domain.Shared.svg?style=flat-square)](https://www.nuget.org/packages/EasyAbp.EShop.Domain.Shared)
An abp application module group that provides basic e-shop service.
## Getting Start
Todo.
## Usage
Todo.

1
README.md

@ -0,0 +1 @@
/docs/README.md

14
docs/README.md

@ -0,0 +1,14 @@
# EShop
[![NuGet](https://img.shields.io/nuget/v/EasyAbp.EShop.Domain.Shared.svg?style=flat-square)](https://www.nuget.org/packages/EasyAbp.EShop.Domain.Shared)
[![NuGet Download](https://img.shields.io/nuget/dt/EasyAbp.EShop.Domain.Shared.svg?style=flat-square)](https://www.nuget.org/packages/EasyAbp.EShop.Domain.Shared)
An abp application module group that provides basic e-shop service.
## Getting Start
Todo.
## Usage
Todo.
Loading…
Cancel
Save