Skip to content

Commit

Permalink
Add publish-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Aug 20, 2020
1 parent efb313f commit 24176a4
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 8 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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: "](/guide/${{ 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/guide/${{ github.event.repository.name }}
rm -rf docs/.vuepress/public/guide/${{ github.event.repository.name }}
mkdir -p docs/guide
mkdir -p docs/.vuepress/public/guide
cp -rf ../docs/ docs/guide/${{ github.event.repository.name }}
cp -rf ../docs/ docs/.vuepress/public/guide/${{ 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
File renamed without changes.
13 changes: 5 additions & 8 deletions README.md → docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# awesome-abp

> A collection of awesomene abp.io resources.
A collection of awesomene abp.io resources.

## Contents
- [Introduction](#introduction)
Expand All @@ -19,6 +18,7 @@
- [Questions](#questions)

## Introduction

### What is abp.io
abp.io is a modular application framework built on top of .net core. More information on the [official abp website](https://abp.io).

Expand Down Expand Up @@ -87,14 +87,11 @@ Abp.VNext.Hello 数据库使用的是SQLite 拉取代码,然后就可以跑起
## Podcasts


## Contributions
Contributions from the community are always welcome! Please take a look at the [contribution guidelines](https://github.com/EasyAbp/awesome-abp/blob/master/CONTRIBUTING.md) pages first. Thanks to all [contributors](https://github.com/EasyAbp/awesome-abp/graphs/contributors), you're awesome and wouldn't be possible without you!
## Contributions
Contributions from the community are always welcome! Please take a look at the [contribution guidelines](/docs/CONTRIBUTING.md) pages first. Thanks to all [contributors](https://github.com/EasyAbp/awesome-abp/graphs/contributors), you're awesome and wouldn't be possible without you!

## Questions
Feel free to open a new issue if you have any questions regarding abp.io.

# Stargazers over time
## Stargazers over time
[![Stargazers over time](https://starcharts.herokuapp.com/abpframework/abp.svg)](https://starcharts.herokuapp.com/abpframework/abp)



0 comments on commit 24176a4

Please sign in to comment.